Reputation: 15
I am new in Three.js and need some help...
I am moving and rotating an object randomly several times. After certain time I need to know the orientation of the local coordinate system of that object to do some physics...
How do I extract from the object the matrix containing the local coordinate system?
Thanks
Upvotes: 1
Views: 1423
Reputation: 1084
You can get the matrix from your object in the property from your object3D called matrix.
Extracting the different information form this matrix is quite easy, follow the steps from this discussion or the documentation
Upvotes: 1