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
| Parameter | Type | Description |
|---|---|---|
time | number | Seconds from the start of the animation. |
translation | Vector3 | null | The bone's translation relative to its parent, or null to keep the skeleton's. |
rotation | Quaternion | The 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.