Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
A 3D vector using floating point coordinates.
A 3-element structure that can be used to represent 3D coordinates or any other triplet of numeric values.
It uses floating-point coordinates. By default, these floating-point values use 32-bit precision, unlike float which is always 64-bit. If double precision is needed, compile the engine with the option
See Vector3i for its integer counterpart.
Note: In a boolean context, a Vector3 will evaluate to
false if it's equal to
Vector3(0, 0, 0). Otherwise, a Vector3 will always evaluate to
Vector3 ( )