This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I'm trying to set the global translation value, but I can't find any resources on how the setglobaltranslation() function works. Someone wanna help out?
I can get the global translation just fine, but I can't set it

in Engine by (33 points)

1 Answer

0 votes

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 globaltransform and the origin, so it will be at least something similar. Still cant believe there isnt a more accesible globalposition like in 2D

by (450 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.