Input: Added viewport local mouse position | Transform: Added default parameter values for create_transform procedure

This commit is contained in:
2024-10-28 23:32:17 +01:00
parent a3e5cf7e4a
commit f9bcc3538e
4 changed files with 19 additions and 4 deletions

View File

@@ -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;