setting a position of an object sets a diferent position (godot 4)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By smeks

When i set the position of a staticbody3d (includes mesh instance and collision shape) using either position or global_position, it adds an extra amount on top of it. for example when i set a position to be Vector3(5,1,5), in the remote section of the editor, it puts it at Vector3(5.12,1.785,5.346). i also dont add any extra position anywhere to it.

try using transform.origininstead

Inces | 2022-12-30 11:50