I have a group with gltf scene inside of it. From what I see the positionning of the object is not based on its center. So I need to find for some reasons the center of this group and its center based position in the scene.
I’ve tried (pseudo-code)
const center = bbox.getCenter( new THREE.Vector3())
const centerPosition = new THREE.Vector3( obj.position.x + center.x, obj.position.y - center.y)
but it doesn’t seem to work.
Any ideas? Thanks in advance.