t3d. VectorKeyframeTrack

Used for vector property track.

Constructor

new VectorKeyframeTrack(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
  • 'vector'

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