Class: PositionChaser

X3D: 3.3
Component: Followers
Status:
experimental

.nodeTypes. PositionChaser

The PositionChaser animates transitions for 3D vectors. If its value field is routed to a translation field of a Transform node that contains an object, then, whenever the destination field receives a 3D position, the PositionChaser node moves the object from its current position to the newly set position. It creates a smooth transition that ends duration seconds after the last position has been received.

HTML Encoding and Default Values

<PositionChaser destination='0,0,0' duration='1' initialDestination='0,0,0' initialValue='0,0,0' isActive='false' metadata='X3DMetadataObject' value='0,0,0' ></PositionChaser>

Inheritance


Constructor

PositionChaser(ctx)

Constructor for PositionChaser

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
destination SFVec3f 0,0,0 The target orientation value.
duration SFTime 1 X3DChaserNode Duration of the transition
initialDestination SFVec3f 0,0,0 The field initialDestination should be set to the same value than initialValue unless a transition to a certain position is to be created right after the scene is loaded or right after the PositionChaser node is created dynamically.
initialValue SFVec3f 0,0,0 The field initialValue can be used to set the initial position of the object.
isActive SFBool false X3DFollowerNode isActive shows if the sensor is active
metadata SFNode X3DMetadataObject X3DNode Field to add metadata information
value SFVec3f 0,0,0 The current orientation value.