This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_stepaside [2020/11/24 09:58] – [ECBehaviorStepAside] dragonlord | dragengine:modules:dragonscript:behavior_stepaside [2025/03/13 17:10] (current) – dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
<WRAP youarehere> | <WRAP youarehere> | ||
- | [[: | + | [[: |
</ | </ | ||
Line 8: | Line 8: | ||
====== ECBehaviorStepAside ====== | ====== ECBehaviorStepAside ====== | ||
+ | |||
+ | <WRAP center 100%> | ||
+ | <WRAP center box 450px> | ||
+ | {{youtube> | ||
+ | <WRAP centeralign> | ||
+ | </ | ||
+ | </ | ||
Behavior adding support to actors to step aside if told. | Behavior adding support to actors to step aside if told. | ||
Line 16: | Line 23: | ||
This behavior can be disabled temporarily to prevent actors from stepping aside. | This behavior can be disabled temporarily to prevent actors from stepping aside. | ||
- | |||
- | <WRAP center 100%> | ||
- | <WRAP center box 450px> | ||
- | {{youtube> | ||
- | <WRAP centeralign> | ||
- | </ | ||
- | </ | ||
====== Instance Counts ====== | ====== Instance Counts ====== | ||
Line 28: | Line 28: | ||
====== Element Class Properties ====== | ====== Element Class Properties ====== | ||
- | Element class properties have the prefix | + | Element class properties have the prefix |
===== enabled ===== | ===== enabled ===== | ||
Determines if the behavior is initially enabled. | Determines if the behavior is initially enabled. | ||
- | * Full name: "stepAside.enabled" | + | * Full name: '' |
* Type: boolean | * Type: boolean | ||
- | * Default Value: true | + | * Default Value: |
* Example (*.deeclass) <code xml>< | * Example (*.deeclass) <code xml>< | ||
===== radius ===== | ===== radius ===== | ||
Avoid radius. Actor tries to move to a position with this distance away from the moving lane of the actor requesting to step aside. | Avoid radius. Actor tries to move to a position with this distance away from the moving lane of the actor requesting to step aside. | ||
- | * Full name: "stepAside.radius" | + | * Full name: '' |
* Type: floating point | * Type: floating point | ||
* Minimum Value: 0 | * Minimum Value: 0 | ||
Line 55: | Line 55: | ||
====== API Documentation ====== | ====== API Documentation ====== | ||
- | [[https:// | + | # |
- | Since DragonScript Module Version | + | Since DragonScript Module Version |
====== Use Cases ====== | ====== Use Cases ====== | ||
Line 90: | Line 90: | ||
end | end | ||
</ | </ | ||
+ | |||
+ | ====== Behavior Factory ====== | ||
+ | |||
+ | Using element class supporting adding behaviors the behavior can be added like this: | ||
+ | <code xml> | ||
+ | <?xml version=' | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | < | ||
+ | <!-- set element properties. omit property prefix if used inside behavior tag --> | ||
+ | <float name=' | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ====== Live Examples ====== | ||
+ | |||
+ | * [[https:// | ||
+ |