Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | dodgyville | |
Old Version | Published before Godot 3 was released. |
I’m generating spawn points in a volume in a Scene. I’m storing the coords in a Vector3.
How do I relocate a node to that global position? I think it’s something like:
var spawn_point = Vector3(-11, 0, 4)
var clone = character.duplicate()
clone.translate(spawn_point - character.get_global_transform().origin)
The character I’m cloning is scaled and transformed in the scene already.
does clone.transform.origin = spawn_point
not work?
volzhs | 2018-01-18 08:02
Thank you! That put me on the right track
dodgyville | 2018-01-18 22:47