Root Motion
Description
Sets the root motion options for the model.
When enabled, root motion makes the base entity move with the model's animations, following the animations of the bone designed as the "root".
A bone can be designed as the root in the model mechanic, via the rootbone attribute
Attributes
| Attribute | Aliases | Description | Type | Default |
|---|---|---|---|---|
| weight | w | The weight for the root motion | Double | -1 |
| baseweight | bw | The base weight for the root motion | Double | -1 |
| override | ov | Whether the root motion can override the base entity's position, moving the entity along with the animations. This can be turned "on and off" by repeatedly using this mechanic to enable or remove the override | Boolean |
Examples
Skills:
- rootmotion{ov=true}
- state{s=animation}
- delay 100
- rootmotion{ov=false}