23
Why is the negative Z-axis considered to be facing forward in Godot?
(lemmings.world)
Welcome to the programming.dev Godot community!
This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.
Make sure to follow the Godot CoC while chatting
We have a matrix room that can be used for chatting with other members of the community here
We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent
Arbitrary and historical reasons.
A good overview about why and who: https://ahmetburul.medium.com/coordinate-systems-of-3d-applications-guide-ddfa2194ed88
Personally, I'm super annoyed that Z is not up. but that's just me coming from Blender and Unreal. It makes programming 3D games more annoying, imo
Edit to add: With Godot having its origins in 2D, Z is "into the screen". and that orientation basically stuck. Why they used negative, I'm not sure
I think especially in 2d, using the negative direction makes sense, as things that are "higher" (closer to the screen) should occlude things that are "lower". It's the same in HTML/CSS.
Yeah, while initially writing my terrain generator I thought it weird to have a X,Z grid of tiles. Odd decision for Godot team. But I am used to it now.