I asked this question previously on this forum:
I’m trying to find the position of objects inside my blender model. It’s a similar object and issue as the previous example, except with a glTF loader due to loading time. With this model, I can simply get the meshes position using mesh.position. However I have some objects that are groups of meshs like so:
However, now when I use the following code:
mesh.geometry.computeBoundingBox(); var center = new THREE.Vector3(); mesh.geometry.boundingBox.getCenter(center); mesh.geometry.center(); mesh.position.copy(center);
The position is set the centre. I can’t seem to find how I can return the position of the meshes inside the group… The information doesn’t appear to be in the geometry attribute or the position attibute. Any ideas on how I could return the position of the object?
Thanks in advance