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.
Represents a GLTF camera.
Represents a camera as defined by the base GLTF spec.
to_dictionary ( ) const
to_node ( ) const
float depth_far =
The distance to the far culling boundary for this camera relative to its local Z axis, in meters. This maps to GLTF's
float depth_near =
The distance to the near culling boundary for this camera relative to its local Z axis, in meters. This maps to GLTF's
float fov =
The FOV of the camera. This class and GLTF define the camera FOV in radians, while Godot uses degrees. This maps to GLTF's
yfov property. This value is only used for perspective cameras, when perspective is true.
bool perspective =
Whether or not the camera is in perspective mode. If false, the camera is in orthographic/orthogonal mode. This maps to GLTF's camera
type property. See Camera3D.projection and the GLTF spec for more information.
float size_mag =
The size of the camera. This class and GLTF define the camera size magnitude as a radius in meters, while Godot defines it as a diameter in meters. This maps to GLTF's
ymag property. This value is only used for orthographic/orthogonal cameras, when perspective is false.