Set origin to center object 3d

In my project i have to work to many objects GLTF and some have the origin in bottom or center. I want to set the origin to center for all objects in my project by code. Is it possible?

@Agustin_Costa_Cimadevilla take a look here: Change coordinate origin

I’d rather call this the “insertion point”, and yes, that’s possible, by using a THREE.Group() .

Move your object to the desired position, then add it to a dedicated group (per object) and voilĂ : you can insert the group at its local (0, 0, 0) position.

1 Like

ohhh, good trick. I was trying to work with geometry but this is better. Thank you all!