Gameobject pivot vs center

Hi
Can anyone explain why objects are moved by a pivot not center? I have choose center but still move the object using the pivot. Iam using for move this code:
objekt.GetComponent<Rigidbody>().MovePosition(hit.point)

The button is effective for the tools in the editor and it doesn’t effect how an object is transformed during run time.

1 Like

And know someone how to move with “center” during run time?

1 Like

You can find the center of your object with: transform.renderer.bounds.center.You should be able to calculate the offset from your pivot and adjust your movement using that…

Ok, so i solved problem as follows… i changed pivot point like in this video. If someone did not know in the future
’

’

you can make the item you want a child of a new gameobject.