Francisco Pantano
Francisco Pantano

Reputation: 15

THREE.js get local coordinate system of an object

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

Answers (1)

juagicre
juagicre

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

Related Questions