Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
Vector3¶
A 3D vector using floating point coordinates.
Description¶
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 precision=double
.
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 true
.
Tutorials¶
Properties¶
|
||
|
||
|
Constructors¶
Vector3 ( ) |
|