If I move a root CharacterBody3D node using a script attached to it, does it move it relative to the scene or move the scene node

Godot Version

Godot v4.1.3

Question

That’s about it, basically if you move a scene’s root node coords does it move the scene’s coords or everything in the scene relative to the scene?

if u programmed the characterbody2d node, only the character and its child nodes will move.

Yeah but if the characterbody is the root node does it move the scene within another scene or the node-and-children within its scene within another scene?

What’s the difference for you? A scene is just a collection of Nodes organized in a tree stye, where usually you’d refer to the root Node as a Scene. Moving a Scene is the same as moving the root Node. Child Nodes will follow the root Node.
I don’t see why it would make any difference to differentiate the Scene vs root Node.

1 Like

Even if the scene is the root… The position of the scene will change but not the position of the children.
The global_position will change for all nodes though.

1 Like