t3d. NumberKeyframeTrack

Used for number property track.

Constructor

new NumberKeyframeTrack(target, propertyPath, times, values, interpolantopt)

Parameters:
NameTypeAttributesDefaultDescription
targett3d.Object3D
propertyPathString
timesArray
valuesArray
interpolantt3d.KeyframeInterpolant.constructor<optional>
t3d.LinearInterpolant

Extends

Members

(readonly) valueTypeName :String

Type:
  • String
Default Value
  • 'number'

Methods

getValue(t, outBuffer) → {Array}

Get value at time. The value will be interpolated by interpolant if time is between keyframes.
Parameters:
NameTypeDescription
tNumbertime
outBufferArrayoutput buffer
Returns:
output buffer
Type: 
Array

setInterpolant(interpolant) → {t3d.KeyframeTrack}

Set interpolant for this keyframe track.
Parameters:
NameTypeDescription
interpolantt3d.KeyframeInterpolant.constructor
Returns:
Type: 
t3d.KeyframeTrack