| Reply From: | kidscancode |
You can set a Spatial’s position in space using transform.origin. If you want to use a Position3D’s transform to do it, get a reference to that node.
new_node.transform.origin = $Position3D.transform.origin
Note: these are in local coordinates, you may need global_transform depending on your node setup.
If you want to use the Position3D’s position and orientation:
new_node.transform = $Position3D.transform
Worked like a charm! And the global_transform was indeed what I was looking for, thanks for the help!
HashtagOrNah | 2020-01-06 16:36