Animation
-
class
Animation.
Animation
() Structure encapsulating a specific animation
Constructors
Properties
Constructors
-
Animation.
constructor
(name) Arguments: - name (
string()
) – friendly name for the animation
Creates a new, empty Animation
Return type: Animation - name (
Properties
-
Animation.
cameraChannels
Type: [CameraChannel]
-
Animation.
name
Type: string friendly name for the animation
-
Animation.
nodeChannels
Type: [NodeChannel]
-
Animation.
pivotPoints
Type: Map <number, Point3>
Methods
createCameraChannel
-
Animation.
createCameraChannel
(name, property, sampler) Arguments: - name (
string()
) – friendly name for the channel. - property (
CameraProperty()
) – the property that will be animated by this channel. - sampler (
Sampler()
) – sampler describing the buffer and interpolation type used.
Creates a new camera animation channel.
Return type: CameraChannel - name (
createNodeChannel
-
Animation.
createNodeChannel
(name, target, property, sampler) Arguments: - name (
string()
) – friendly name for the channel. - target (
number()
) – id of node that will receive interpolated values. - property (
NodeProperty()
) – the node property that will be animated. - sampler (
Sampler()
) – sampler describing the buffer and interpolation type.
Creates a new node animation channel.
Return type: NodeChannel - name (