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/08 19:31] – 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 76: | Line 96: | ||
| |controller.value.upper|float|Set current value of controller '' | |controller.value.upper|float|Set current value of controller '' | ||
| |controller.value.reverse| |Reverse current value of controller '' | |controller.value.reverse| |Reverse current value of controller '' | ||
| - | |notifyControllersChanged|float, | ||
| - | |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: | This is an example of using this action: | ||
| Line 83: | 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=' | ||
| + | < | ||
| </ | </ | ||
| </ | </ | ||