This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dragengine:modules:dragonscript:behavior_touching [2025/03/13 17:17] – dragonlord | dragengine:modules:dragonscript:behavior_touching [2025/05/02 15:30] (current) – [Behavior Tree Actions] dragonlord | ||
|---|---|---|---|
| Line 54: | Line 54: | ||
| Last element left touch sensor. | Last element left touch sensor. | ||
| + | |||
| + | ====== Behavior Tree Actions ====== | ||
| + | |||
| + | The [[behavior_touchsensor|ECBehaviorTouchSensor]] behavior adds behavior tree actions if behavior tree is present. See [[behavior_touchsensor# | ||
| + | |||
| + | This is an example of using touch sensor behavior tree actions: | ||
| + | <code xml> | ||
| + | <action name=' | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <code xml> | ||
| + | < | ||
| + | <action name=' | ||
| + | < | ||
| + | </ | ||
| + | <!-- actions here run only if player is touching touch sensor --> | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ====== Behavior Tree Conditions ====== | ||
| + | |||
| + | The [[behavior_touchsensor|ECBehaviorTouchSensor]] behavior adds behavior tree conditions if behavior tree is present. See [[behavior_touchsensor# | ||
| + | |||
| + | This is an example of using touch sensor behavior tree conditions: | ||
| + | <code xml> | ||
| + | <action name=' | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| ====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
| Line 62: | Line 94: | ||
| * [[behavior_collider|ECBehaviorCollider]]: | * [[behavior_collider|ECBehaviorCollider]]: | ||
| + | * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | ||
| + | |||
| ====== Persistency ====== | ====== Persistency ====== | ||