Documentation / @imvu/cal3d / MorphTrack
Class: MorphTrack
Defined in: packages/cal3d/src/MorphAnimation.ts:18
The weight curve of one morph target, which it names (see MorphTarget.name in a mesh).
Constructors
Constructor
ts
new MorphTrack(morphName, keyframes?): MorphTrack;Defined in: packages/cal3d/src/MorphAnimation.ts:19
Parameters
| Parameter | Type | Default value |
|---|---|---|
morphName | string | undefined |
keyframes? | MorphKeyframe[] | [] |
Returns
MorphTrack
Properties
keyframes
ts
readonly keyframes: MorphKeyframe[] = [];Defined in: packages/cal3d/src/MorphAnimation.ts:21
morphName
ts
morphName: string;Defined in: packages/cal3d/src/MorphAnimation.ts:20
Methods
sample()
ts
sample(time): number;Defined in: packages/cal3d/src/MorphAnimation.ts:25
The weight at time, linearly interpolated and clamped to the first/last keyframe.
Parameters
| Parameter | Type |
|---|---|
time | number |
Returns
number