- Edited
I'm trying to have a meshinstance orbit a SpringArm3d (its parent), by rotating the SpringArm3D using this code:
var mouse_senitivity = 0.03
if event is InputEventMouseMotion:
$SpringArm3d.rotate_y(-event.relative.x * mouse_sensitivity)
While this does rotate the SpringArm, it also moves the child (meshinstance) right on top of the parent and rotates it there. I don't understand why this happens, I thought child-parent-offsets (including spring length) were maintained when transforming the parent.
Am I using the wrong method?
[apologies for crossposting]