class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResource GLTFCamera
Represents a glTF camera.

Represents a camera as defined by the base glTF spec.

float depth_far<>():float

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.

float depth_near<>():float

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.

float fov<>():float

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<>():bool

If true, the camera is in perspective mode. Otherwise, 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<>():float

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.

GLTFCamera from_dictionary<>( Dictionary dictionary=, dictionary:Dictionary=, ):GLTFCamera

Creates a new GLTFCamera instance by parsing the given Dictionary.

GLTFCamera from_node<>( Camera3D camera_node=, camera_node:Camera3D=, ):GLTFCamera

Create a new GLTFCamera instance from the given Godot Camera3D node.

Dictionary to_dictionary<>():Dictionary

Serializes this GLTFCamera instance into a Dictionary.

Camera3D to_node<>():Camera3D

Converts this GLTFCamera instance into a Godot Camera3D node.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...