Rotate a transformation matrix by an angle around an axis #602
Replies: 3 comments 4 replies
-
well. could have passed on some information regarding rotating an object after moving this from issues to discussions :/ |
Beta Was this translation helpful? Give feedback.
-
I am trying to rotate an object around an axis by an angle. how can it be done with glam. currently what I am doing is then adding this would this be the way to rotate an object around some axis by and angle |
Beta Was this translation helpful? Give feedback.
-
thank you for the information. closing for now.. |
Beta Was this translation helpful? Give feedback.
-
Hello.
I would like to rotate an object by an angle around a axis.
in cglm the following can be done
glm_rotate(object_transform_matrix, angle, axis);
How can this be achieved in glam?
Do i need to extract the rotation from the object transformation matrix and then somehow rotate it further by the angle and around the axis and then create another matrix which would be the new object_transform_matrix.
Thank you in advance.
Cheers
Someone with experience with this crate please add a few examples.
Beta Was this translation helpful? Give feedback.
All reactions