Three.js - what do the matrices in a 3D object represent

后端 未结 1 1192
一个人的身影
一个人的身影 2021-02-13 12:00

Looking at the source of THREE.Object3D, there are three properties: matrix, matrixWorld and matrixRotationWorld.

I see that the o

相关标签:
1条回答
  • 2021-02-13 12:34

    object.matrix is the matrix transform of the object.

    object.matrixWorld is the matrix transform of the object, taking into consideration the matrix transform of the object's parent. (The object's parent may also have a parent, so the calculation of object.matrixWorld is recursive.)

    object.matrix and object.matrixWorld are identical when the object has no parent, other than the scene.

    object.matrixRotationWorld no longer exists.

    three.js r.69

    0 讨论(0)
提交回复
热议问题