This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dragengine:modules:dragonscript:behavior_actoranimated [2025/05/04 13:43] – [actorAnimated.check] dragonlord | dragengine:modules:dragonscript:behavior_actoranimated [2026/09/26 22:31] (current) – [controllerMapping (behavior factor)] dragonlord | ||
|---|---|---|---|
| Line 40: | Line 40: | ||
| </ | </ | ||
| + | ===== controllerMapping (behavior factor) ===== | ||
| + | |||
| + | Sets the animator controller mappings. These mappings are assigned to [[behavior_locomotion|ECBehaviorLocomotion]] if present in the class. This allows to easily apply certain actor input parameters to animators using controllers of the matching names. This is a behavior factory only parameter (see section [[# | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | |||
| + | Hence if you want an animator to react to the movement speed add a controller named '' | ||
| ====== Events ====== | ====== Events ====== | ||
| Line 81: | Line 101: | ||
| <action name=' | <action name=' | ||
| < | < | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== actorAnimated.update ===== | ||
| + | |||
| + | Update actor animated. | ||
| + | |||
| + | ^Parameter^Value^Description^ | ||
| + | |notifyControllersChanged| |Notify all listeners controllers changed.| | ||
| + | |apply| |Apply animator. This starts the asynchronous process of applying the animator without waiting until it is finished. Waiting is done automatically whenever actions require the result.| | ||
| + | |||
| + | This is an example of using this action: | ||
| + | <code xml> | ||
| + | <action name=' | ||
| + | < | ||
| </ | </ | ||
| </ | </ | ||