Class FollowBehavior
Hierarchy
- FollowBehavior
Implements
Index
Properties
- attached
Node - default
Distance - fixed
Vertical Offset - ignore
Angle Clamp - ignore
Camera Pitch And Roll - ignore
Distance Clamp - interpolate
Pose - lerp
Time - max
View Horizontal Degrees - max
View Vertical Degrees - maximum
Distance - minimum
Distance - orient
ToCamera Deadzone Degrees - pitch
Offset - use
Fixed Vertical Offset - vertical
Max Distance
Accessors
Methods
Properties
attached NodeSearch playground for attachedNode
Attached node of this behavior
default DistanceSearch playground for defaultDistance
Default distance from eye to attached node, i.e. the sphere radius
fixed Vertical OffsetSearch playground for fixedVerticalOffset
Fixed vertical position offset distance.
ignore Angle ClampSearch playground for ignoreAngleClamp
Option to ignore angle clamping
ignore Camera Pitch And RollSearch playground for ignoreCameraPitchAndRoll
If the behavior should ignore the pitch and roll of the camera.
ignore Distance ClampSearch playground for ignoreDistanceClamp
Option to ignore distance clamping
interpolate PoseSearch playground for interpolatePose
Set to false if the node should strictly follow the camera without any interpolation time
lerp TimeSearch playground for lerpTime
Rate of interpolation of position and rotation of the attached node. Higher values will give a slower interpolation.
max View Horizontal DegreesSearch playground for maxViewHorizontalDegrees
The horizontal angle from the camera forward axis to the owner will not exceed this value
max View Vertical DegreesSearch playground for maxViewVerticalDegrees
The vertical angle from the camera forward axis to the owner will not exceed this value
maximum DistanceSearch playground for maximumDistance
Max distance from eye to attached node, i.e. the sphere radius
minimum DistanceSearch playground for minimumDistance
Min distance from eye to attached node, i.e. the sphere radius
orient ToCamera Deadzone DegreesSearch playground for orientToCameraDeadzoneDegrees
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 OffsetSearch playground for pitchOffset
Pitch offset from camera (relative to Max Distance)
Is only effective if ignoreCameraPitchAndRoll
is set to true
.
use Fixed Vertical OffsetSearch playground for useFixedVerticalOffset
Ignore vertical movement and lock the Y position of the object.
vertical Max DistanceSearch playground for verticalMaxDistance
Max vertical distance between the attachedNode and camera
Accessors
followed Camera
name
-
The name of the behavior
Returns string
Methods
attachSearch playground for attach
-
Attaches the follow behavior
Parameters
-
ownerNode: TransformNode
The mesh that will be following once attached
-
Optional followedCamera: Camera
The camera that should be followed by the node
Returns void
-
detachSearch playground for detach
-
Detaches the behavior from the mesh
Returns void
initSearch playground for init
-
Initializes the behavior
Returns void
recenterSearch playground for 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