Interface FollowCameraOptions

Options for creating and configuring a FollowCamera

interface FollowCameraOptions {
    duration?: number;
    ease?: EaseType;
    offsets?: Partial<CameraOffset>;
    target?: GameInstance | Vector2D;
    trackTargetZ?: boolean;
    trackViewEyeZ?: boolean;
}

Properties

duration?: number

Duration for easing to target position

ease?: EaseType

Ease type for following movement

offsets?: Partial<CameraOffset>

Camera offsets from target position

Target to follow (GameInstance or Vector2D position)

trackTargetZ?: boolean

Whether to track the target's Z position (subtracted from Y position)

trackViewEyeZ?: boolean

Whether to track the view eye's Z position (alias for trackTargetZ)