Class: ScalarChaser

X3D: 3.3
Component: Followers

.nodeTypes. ScalarChaser

The ScalarChaser animates transitions for single float values. Whenever the destination field receives a floating point number, it creates a transition from its current value to the newly set number. It creates a smooth transition that ends duration seconds after the last number has been received.

HTML Encoding and Default Values

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




Constructor for ScalarChaser

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


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 SFFloat 0 The target value.
duration SFTime 1 X3DChaserNode Duration of the transition
initialDestination SFFloat 0 The field initialDestination should be set to the same value than initialValue unless a transition to a certain value is to be created right after the scene is loaded or right after the ScalarChaser node is created dynamically.
initialValue SFFloat 0 The field initialValue can be used to set the initial initial value.
isActive SFBool false X3DFollowerNode isActive shows if the sensor is active
metadata SFNode X3DMetadataObject X3DNode Field to add metadata information
value SFFloat 0 The current value.