Class FollowBehaviorSince
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Returns FollowBehavior
Properties
attached Node
Attached node of this behavior
default Distance
Default distance from eye to attached node, i.e. the sphere radius
fixed Vertical Offset
Fixed vertical position offset distance.
ignore Angle Clamp
Option to ignore angle clamping
ignore Camera Pitch And Roll
If the behavior should ignore the pitch and roll of the camera.
ignore Distance Clamp
Option to ignore distance clamping
interpolate Pose
Set to false if the node should strictly follow the camera without any interpolation time
lerp Time
Rate of interpolation of position and rotation of the attached node. Higher values will give a slower interpolation.
maximum Distance
Max distance from eye to attached node, i.e. the sphere radius
max View Horizontal Degrees
The horizontal angle from the camera forward axis to the owner will not exceed this value
max View Vertical Degrees
The vertical angle from the camera forward axis to the owner will not exceed this value
minimum Distance
Min distance from eye to attached node, i.e. the sphere radius
orient To Camera Deadzone Degrees
The attached node will not reorient until the angle between its forward vector and the vector to the camera is greater than this value
pitch Offset
Pitch offset from camera (relative to Max Distance)
Is only effective if ignoreCameraPitchAndRoll is set to true.
use Fixed Vertical Offset
Ignore vertical movement and lock the Y position of the object.
vertical Max Distance
Max vertical distance between the attachedNode and camera
Methods
attach
-
Attaches the follow behavior
Parameters
- ownerNode: TransformNode
The mesh that will be following once attached
OptionalfollowedCamera: CameraThe camera that should be followed by the node
Returns void
- ownerNode: TransformNode
detach
-
Detaches the behavior from the mesh
Returns void
init
-
Initializes the behavior
Returns void
recenter
-
Recenters the attached node in front of the camera on the next update
Returns void
A behavior that when attached to a mesh will follow a camera 5.0.0