THREE.js: Calculate world space position of a point on an object

后端 未结 1 689
小蘑菇
小蘑菇 2020-12-09 17:53

I have a 3D object. \"Attached\" to it is a point. When the object is moved or rotated, the point moves and rotates with it.

Given the object\'s position and rotatio

相关标签:
1条回答
  • 2020-12-09 18:53

    For a point in an object's local coordinate system,

    object.localToWorld( point );
    

    will return the world coordinates of the point, assuming the same transform is applied to the point as is applied to the object.

    three.js r.55

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