TruWorlds

CameraState

A snapshot of the camera's mode, target, and transform.

Fields

The current behavior mode of the camera.

FollowTarget Instance?

The Instance the camera is following, or null when no follow target is set.

FollowDistance float

Distance (in studs) from FollowTarget while orbiting.

CMatrix CMatrix

The camera's world transform.

FieldOfView float

The camera's vertical field of view in degrees.

FirstPerson bool

True when the camera is rendering from a first-person viewpoint.

OrbitAxisAngles Vector3

Euler angles (radians) describing the orbit-camera rotation around its target.

FreeCamAxisAngles Vector3

Euler angles (radians) describing the free/fly camera's orientation.