Up to date
This page is up to date for Redot 4.3
.
If you still find outdated information, please create an issue.
GLTFCamera¶
Inherits: Resource < RefCounted < Object
Represents a GLTF camera.
Description¶
Represents a camera as defined by the base GLTF spec.
Tutorials¶
Properties¶
|
||
|
||
|
||
|
||
|
Methods¶
from_dictionary(dictionary: Dictionary) static |
|
to_dictionary() const |
|
to_node() const |
Property Descriptions¶
The distance to the far culling boundary for this camera relative to its local Z axis, in meters. This maps to GLTF's zfar
property.
The distance to the near culling boundary for this camera relative to its local Z axis, in meters. This maps to GLTF's znear
property.
The FOV of the camera. This class and GLTF define the camera FOV in radians, while Redot uses degrees. This maps to GLTF's yfov
property. This value is only used for perspective cameras, when perspective is true.
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.
The size of the camera. This class and GLTF define the camera size magnitude as a radius in meters, while Redot 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.
Method Descriptions¶
GLTFCamera from_dictionary(dictionary: Dictionary) static 🔗
Creates a new GLTFCamera instance by parsing the given Dictionary.
GLTFCamera from_node(camera_node: Camera3D) static 🔗
Create a new GLTFCamera instance from the given Redot Camera3D node.
Dictionary to_dictionary() const 🔗
Serializes this GLTFCamera instance into a Dictionary.
Converts this GLTFCamera instance into a Redot Camera3D node.