AnimParam
Since 0.6
Fields
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
name | string | yes | |||
value | number | yes | Value before anything writes one. | ||
source | AnimParamSource | no | speed, strafeX, strafeY, verticalSpeed, grounded, inputSpeed, inputStrafeX, inputStrafeY | ||
damp | number | no | Seconds the parameter takes to follow what is written to it, by exponential smoothing: after damp seconds it has covered about 63% of a step, after three times that 95%. A stick pressed or let go is a step from 0 to full speed in one tick, and a blend tree on it would snap the pose from idle to run with it; 0.1 to 0.2 turns that snap into a blend. Applies to the engine's source and to ctx.animator.param alike; reads return the smoothed value. Absent or 0 follows at once. Finite and 0 or more (animator-damp-invalid). |