API

Class FollowBehaviorSince

A behavior that when attached to a mesh will follow a camera 5.0.0

Implements

Index
attachedNode: Nullable<TransformNode>

Attached node of this behavior

defaultDistance: number = 0.8

Default distance from eye to attached node, i.e. the sphere radius

fixedVerticalOffset: number = 0

Fixed vertical position offset distance.

ignoreAngleClamp: boolean = false

Option to ignore angle clamping

ignoreCameraPitchAndRoll: boolean = false

If the behavior should ignore the pitch and roll of the camera.

ignoreDistanceClamp: boolean = false

Option to ignore distance clamping

interpolatePose: boolean = true

Set to false if the node should strictly follow the camera without any interpolation time

lerpTime: number = 500

Rate of interpolation of position and rotation of the attached node. Higher values will give a slower interpolation.

maximumDistance: number = 2

Max distance from eye to attached node, i.e. the sphere radius

maxViewHorizontalDegrees: number = 30

The horizontal angle from the camera forward axis to the owner will not exceed this value

maxViewVerticalDegrees: number = 30

The vertical angle from the camera forward axis to the owner will not exceed this value

minimumDistance: number = 0.3

Min distance from eye to attached node, i.e. the sphere radius

orientToCameraDeadzoneDegrees: number = 60

The attached node will not reorient until the angle between its forward vector and the vector to the camera is greater than this value

pitchOffset: number = 15

Pitch offset from camera (relative to Max Distance) Is only effective if ignoreCameraPitchAndRoll is set to true.

useFixedVerticalOffset: boolean = false

Ignore vertical movement and lock the Y position of the object.

verticalMaxDistance: number = 0

Max vertical distance between the attachedNode and camera