Object positioned too low

Hello,

i have a problem with positioning object in a scene. I have a flat floor (y = 0). When I put an object on that floor and set it’s y position to 0, part of an object is positioned beyond the floor.
2867985--210076--wrong.JPG

How could I repairs this, so whenever I instantiate this object in a scene, it would be positioned nicely on the floor, without changing the y coordinate ?

Regards, L

The problem is that your objects pivot is at the centre. Either change the pivot location in a 3d modeling programming or create an empty game object and parent the object to that. Then offset the object so the parents pivot is at the bottom and set the position using the parent game object instead.

1 Like

You could also child an object to it, call it “floor” and place it at the bottom of the object. Then create the object + the child objects local Y offset.

1 Like