You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting global_position or global_rotation variables after creating a Node3D in code then using add_child to append it to the current node. Only the last one is set and the others are ignored.
Steps to reproduce
Create Node3D variable in code var node3d = Node3D.new()
To me this looks to be expected. Until you add a node to the tree, it cannot have a global position, rotation, etc., since we don't yet know which branch the node will be added to. Perhaps we need to clarify this point in the docs and/or add a warning.
Godot version
4.0 stable
System information
Windows 10
Issue description
When setting global_position or global_rotation variables after creating a Node3D in code then using add_child to append it to the current node. Only the last one is set and the others are ignored.
Steps to reproduce
Create Node3D variable in code
var node3d = Node3D.new()
Set Positions before add_child
then add_child to Node
add_child(node3d)
Only the global position Z is set.
Minimal reproduction project
bug.zip
The text was updated successfully, but these errors were encountered: