How to get relative positions between meshes imported from obj file

When I import multiple meshes from 1 obj file, they all seem to share the same position and rotate around the same origin.

Is it possible to somehow break them up, or recalculate the rotate origin of each mesh to the average center of itself so each mesh has it’s own independent position?

Thanks in advance!

I think a repro PG will help.

As an aside, you can change the pivot point of a mesh with setPivotPoint / setPivotMatrix if you want to change the center of rotation.

2 Likes

You could also use the bounding boxes of the said meshes to compute their center in world space and convert back in a newly defined local space related to a parent mesh you would like to but as @Evgeni_Popov said a repro would definitely help.

2 Likes