|
|
|
 |
Attention |
Topic was automatically imported from the old Question2Answer platform. |
 |
Asked By |
scooty |
I’m trying to set the global translation value, but I can’t find any resources on how the set_global_translation() function works. Someone wanna help out?
I can get the global translation just fine, but I can’t set it
|
|
|
 |
Reply From: |
Pomelo |
I remember that I once had the same problem for a game jam (only time I worked in 3D in godot) and once I found out the awnser, I was quite amused. If i remember correctly is something like this:
var node
node.global_transform.origin = Vector3(0,0,0)
of course set it to whatever Vector3 you want, and sorry if it isnt exactly as I wrote it, but I remember yo had to acces the whole global_transform and the origin, so it will be at least something similar. Still cant believe there isnt a more accesible global_position like in 2D