Rotate a transformation matrix by an angle around an axis #602
Unanswered
nihalkenkre
asked this question in
Q&A
Replies: 2 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.
2 replies
-
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.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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