Class: AnimationState
Per-clip playback state. AnimationSystem advances time by dt*speed while playing; on reaching clip.duration it wraps (loop) or clamps + stops. weight is reserved for future blending. _resolved is the lazy curve target cache.
Constructors
Constructor
ts
new AnimationState(clip): AnimationState;Parameters
| Parameter | Type |
|---|---|
clip | AnimationClip |
Returns
AnimationState
Properties
| Property | Modifier | Type | Default value |
|---|---|---|---|
clip | public | AnimationClip | undefined |
loop | public | boolean | false |
playing | public | boolean | false |
speed | public | number | 1 |
time | public | number | 0 |
weight | public | number | 1 |
Methods
Reset()
ts
Reset(): void;Returns
void