0 votes

Hi all,

The docs seem to imply that +z is the forward axis:


However Vector3.FORWARD is (0, 0, -1).

Is the Vector3 constant a mistake, or am I misunderstanding the docs? I can't seem to find anything on the page that implies -z is forward.

Thanks very much!

Godot version 4.0.beta4
in Engine by (31 points)

1 Answer

+1 vote
Best answer

No, that Vector3.FORWARD value is correct. Godot's forward look direction is -Z. I'm not sure where the docs imply otherwise?

by (19,270 points)
selected by

Thanks for the reply!

It's a couple of things that I might be misinterpreting. A couple of examples:

A default basis (unmodified) is akin to ... basis.z = Vector3(0, 0, 1)
Shouldn't a default basis.z then be -1?

Following the OpenGL convention, X is the Right axis, Y is the Up axis and Z is the Forward axis.
Should this say -Z is the Forward axis?

Cameras look back (towards Z-Negative)
Doesn't this mean cameras look forward towards z-negative?

I've come from Unity, so please forgive me! Haha

I'm certainly no expert on proper coordinate system terminology, but perhaps some things could/should be clarified in the docs based on your comments...

Ultimately though, there really is no "standard" orientation definition for 3D applications. Even within game engines, these references vary (as documented in the graphic here).

Godot is considered as a "right-handed" coordinate system where Y is the "up/down" axis, X is the "left/right" axis, and Z is the "forward/backward" axis.

Oh, and welcome to Godot! :)

Haha thanks! I'll keep digging. I'm still not entirely sure whether it's my interpretation or if the docs could use some clarification, so we'll see how it goes!

Though as far as I can tell, I can't actually find anywhere in those beginning chapters that says forward is -z. It should be on that page I linked, right?

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.