GLTFCamera
Represents a GLTF camera.
class GLTFCameraRepresents a camera as defined by the base GLTF spec.
Represents a GLTF camera.
class GLTFCameraRepresents a camera as defined by the base GLTF spec.
import SwiftGodotFramework to write Godot Game Extensions using the Swift Programming Language.
class ResourceBase class for serializable objects.
protocol CustomStringConvertibleA type with a customized textual representation.
protocol EquatableA type that can be compared for value equality.
protocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol Identifiable<ID>A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable : VariantStorableTypes that conform to VariantRepresentable can be stored directly in Variant with no conversion. These include all of the Variant types from Godot (for example GString, Rect, Plane), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.
protocol VariantStorableTypes that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
static func fromDictionary(_ dictionary: GDictionary) -> GLTFCamera? Creates a new GLTFCamera instance by parsing the given GDictionary.
static func fromNode(cameraNode: Camera3D?) -> GLTFCamera? Create a new GLTFCamera instance from the given Godot Camera3D node.
override class var godotClassName: StringName { get }final var depthFar: Double { get set }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.
final var depthNear: Double { get set }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.
final var fov: Double { get set }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.
final var perspective: Bool { get set }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 projection and the GLTF spec for more information.
final var sizeMag: Double { get set }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.
final func toDictionary() -> GDictionary Serializes this GLTFCamera instance into a GDictionary.
final func toNode() -> Camera3D? Converts this GLTFCamera instance into a Godot Camera3D node.