c75 Posted March 29, 2017 Share Posted March 29, 2017 Hello guys, can you help? I have matrix and want to extract position, rotation and scale from it. To get position I use matrix.getTranslation(). What about rotation and scale? Can't find it in docs. Not sure that it allowed. Quote Link to comment Share on other sites More sharing options...
adam Posted March 29, 2017 Share Posted March 29, 2017 matrix.decompose https://doc.babylonjs.com/classes/2.5/matrix#decompose-scale-rotation-translation-rarr-boolean c75 1 Quote Link to comment Share on other sites More sharing options...
c75 Posted March 29, 2017 Author Share Posted March 29, 2017 @adam thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.