Skip to content

Documentation / @imvu/cal3d / Keyframe

Class: Keyframe ​

Defined in: packages/cal3d/src/Animation.ts:22

Constructors ​

Constructor ​

ts
new Keyframe(
   time, 
   translation, 
   rotation
): Keyframe;

Defined in: packages/cal3d/src/Animation.ts:23

Parameters ​

ParameterTypeDescription
timenumberSeconds from the start of the animation.
translationVector3 | nullThe bone's translation relative to its parent, or null to keep the skeleton's.
rotationQuaternionThe bone's rotation relative to its parent (file convention, see Quaternion).

Returns ​

Keyframe

Properties ​

rotation ​

ts
rotation: Quaternion;

Defined in: packages/cal3d/src/Animation.ts:29

The bone's rotation relative to its parent (file convention, see Quaternion).


time ​

ts
time: number;

Defined in: packages/cal3d/src/Animation.ts:25

Seconds from the start of the animation.


translation ​

ts
translation: Vector3 | null;

Defined in: packages/cal3d/src/Animation.ts:27

The bone's translation relative to its parent, or null to keep the skeleton's.

Released under the MIT License.