mammonmachine

Don’t follow me if

I wrote and directed WE KNOW THE DEVIL and HEAVEN WILL BE MINE. I also wrote for NEON WHITE and I currently work at game company doing game things.


I can never, ever tell if the reason I can't find documentation for some incredibly simple/trivial feature is because it is so simple no one would ask the question, or because I have fundamentally misunderstood what question I should be asking in the first place.

(In the interest of transparency and accountability, I was trying to find out how to get any given Spatial node in Godot 3.6's world position/ translation 3D, which you get by node.global_translation. I'm trying to create a game on a 3D grid and implementing A* pathfinding...there's probably a much smarter way to do this I'm incapable of seeing until I do it a very stupid way.)


You must log in to comment.

in reply to @mammonmachine's post:

Are you looking to get any arbitrary spatial that happens to exist at a specific world position, or are you trying to translate the world position to coordinates on a grid? Or, something else?

Alternatively, if you’re not looking for advice: sorry, please ignore me!

I was just looking for global_transform.origin ! Pretty obvious but I have a hard time remembering everything since I'm just starting out (and was used to using .position, which is only in 2D, but I think now you can use it in 3D or somethingin godot 4).