Advertisement

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

Started by June 07, 2018 11:46 AM
2 comments, last by alvaro 6 years, 3 months 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 

Because it's a generic toolkit.

 

 

Advertisement

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

 

This topic is closed to new replies.

Advertisement