Three.js How to get position of a mesh?

后端 未结 5 510
被撕碎了的回忆
被撕碎了的回忆 2020-12-10 06:44

With the below code, position of a mesh is returned as (0, 0, 0) but it is not. So is the positioın vector calculated after render process?

me.         


        
5条回答
  •  渐次进展
    2020-12-10 06:58

    alert(objMesh.matrixWorld.getPosition().x + ',' + objMesh.matrixWorld.getPosition().y + ',' + objMesh.matrixWorld.getPosition().z);
    

提交回复
热议问题