Input: Added viewport local mouse position | Transform: Added default parameter values for create_transform procedure
This commit is contained in:
@@ -34,7 +34,7 @@ make_matrix :: (position: Vector3, orientation: Quaternion, scale: Vector3) -> M
|
||||
return trans_mat * rot_mat * scale_mat;
|
||||
}
|
||||
|
||||
create_transform :: (position: Vector3, orientation: Quaternion, scale: Vector3) -> Transform {
|
||||
create_transform :: (position: Vector3=.{0,0,0}, orientation: Quaternion = .{0,0,0,1}, scale: Vector3=.{1,1,1}) -> Transform {
|
||||
transform : Transform;
|
||||
|
||||
transform.position = position;
|
||||
|
||||
Reference in New Issue
Block a user