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/03/11 19:57] – dragonlord | dragengine:modules:dragonscript:behavior_actoranimated [2025/03/13 17:25] (current) – dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
<WRAP youarehere> | <WRAP youarehere> | ||
- | [[: | + | [[: |
</ | </ | ||
Line 14: | Line 14: | ||
To simplify using actor animation a map of controller bindings can be defined to be applied to ECBehaviorLocomotion each time the animator changes. This requires controller names to be consistent and unique across animators but makes life a lot easier. If no map is defined the behavior does not change the locomotion controller mapping. While changing animator controllers with matching names are not reset. | To simplify using actor animation a map of controller bindings can be defined to be applied to ECBehaviorLocomotion each time the animator changes. This requires controller names to be consistent and unique across animators but makes life a lot easier. If no map is defined the behavior does not change the locomotion controller mapping. While changing animator controllers with matching names are not reset. | ||
+ | |||
+ | See also: | ||
+ | * [[gamedev: | ||
+ | * [[gamedev: | ||
+ | * [[tools: | ||
====== Instance Counts ====== | ====== Instance Counts ====== | ||
Line 53: | Line 58: | ||
====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
- | This behavior requires these other behaviors: | ||
* [[behavior_component|ECBehaviorComponent]] | * [[behavior_component|ECBehaviorComponent]] | ||
====== Optional Behaviors ====== | ====== Optional Behaviors ====== | ||
- | This behavior does supports these optional behaviors: | ||
* [[behavior_locomotion|ECBehaviorLocomotion]]: | * [[behavior_locomotion|ECBehaviorLocomotion]]: | ||
====== Persistency ====== | ====== Persistency ====== | ||
- | This behavior does support element class to be persistable (setPersistable). | + | This behavior does support element class to be persistable (setPersistable). |
- | * Active animator identifier | + | |
- | * State of controllers in the animator | + | |
- | * Controller value | + | |
====== API Documentation ====== | ====== API Documentation ====== | ||
Line 112: | Line 111: | ||
<!-- optional: use component with id instead of empty string --> | <!-- optional: use component with id instead of empty string --> | ||
<string name=' | <string name=' | ||
+ | | ||
+ | <!-- calls setDefaultControllerMappings() after creating behavior --> | ||
| | ||
<!-- set element properties. omit property prefix if used inside behavior tag --> | <!-- set element properties. omit property prefix if used inside behavior tag --> | ||
Line 119: | Line 120: | ||
<string key=' | <string key=' | ||
</ | </ | ||
+ | </ | ||
+ | | ||
+ | <!-- for adding multiple behaviors use unique identifiers --> | ||
+ | < | ||
+ | ... | ||
</ | </ | ||
</ | </ |