How to get the global/world position of a child object?

后端 未结 2 2005
误落风尘
误落风尘 2020-11-29 23:10

How do I get the global position of an Object3D inside another Object3D?

setup:

var parent = new THREE.Object3D();
parent.position.s         


        
2条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 23:25

    In threejs r89 you can just get the world position by Object3D.getWorldPosition. I don't know when it was added.

提交回复
热议问题