🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Extract position, rotation and scale from Transformation Matrix (glm library, C++)

Started by
2 comments, last by alvaro 6 years ago

I'm using glm library. Transform class stores single glm::mat4 

Fuction glm::decompose can give me all information I need, but... Why I need to extract everything if I need, for example, only position?

Don't sure about interface of Transform tho 

Advertisement

Because it's a generic toolkit.

 

 

If you only need the position, apply the transformation to the origin.

 

This topic is closed to new replies.

Advertisement