CameraContext
Class in Zigurous.CameraSystem
Declaration
[Serializable]
public sealed class CameraContext
Description
A context object that represents a camera's state.
Properties
rotationModifiers | Modifiers that alter the camera rotation. |
positionModifiers | Modifiers that alter the camera position. |
trackingModifiers | Modifiers that alter the tracking point. |
rotationOverride | Overrides the camera's rotation to the specified value. |
positionOverride | Overrides the camera's position to the specified value. |
lookRotation | The look rotation of the camera expressed as a quaternion. |
modifiedRotation | The look rotation of the camera with modifiers applied (Read only). |
trackingPoint | The position the camera is tracking. |
modifiedTrackingPoint | The position the camera is tracking with modifiers applied (Read only). |
distance | The distance between the camera and the pivot point while factoring in occlusion and the min and max distance (Read only). |
distanceOffset | The distance vector between the camera and the pivot point while factoring in occlusion and the min and max distance (Read only). |
minDistance | The minimum distance the camera can be from the pivot point. |
maxDistance | The maximum distance the camera can be from the pivot point. |
pivotDistance | The intended distance between the camera and the pivot point. |
occlusionDistance | The amount of distance the camera is adjusted due to occlusion. |
Methods
GetTransform | Calculates the camera position and rotation from the context values. |
GetUnmodifiedTransform | Calculates the camera position and rotation from the context values without applying any modifiers or overrides. |
ResetOverrides | Resets any position or rotation overrides applied during the last frame. |