User Tools

Site Tools


dragengine:modules:dragonscript:behavior_colliderai

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dragengine:modules:dragonscript:behavior_colliderai [2026/10/09 16:29] – dragonlorddragengine:modules:dragonscript:behavior_colliderai [2026/10/12 02:53] (current) – [State Machine Events] dragonlord
Line 58: Line 58:
  
 ^Parameter^Value^Description^ ^Parameter^Value^Description^
 +|collisionFilter.filter.set|string|Set named [[gamedev:collisionfiltering|collision filter]] filter mask bit.|
 +|collisionFilter.filter.clear|string|Clear named [[gamedev:collisionfiltering|collision filter]] filter mask bit.|
 |enabled|''true'', ''false''|Enable collider| |enabled|''true'', ''false''|Enable collider|
 |gravity|vector3|Set gravity| |gravity|vector3|Set gravity|
Line 111: Line 113:
 ^Parameter^Value^Description^ ^Parameter^Value^Description^
 |enabled|''true'', ''false''|Collider is enabled| |enabled|''true'', ''false''|Collider is enabled|
 +|hitElement| |Collider has been hit and it is owned by a BehaviorElement. Using [[behavior_statemachine#eventelementupdate|eventParameter.update]] or [[behavior_statemachine#eventelementcheck|eventParameter.check]] is valid.|
 |wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled| |wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled|
  
Line 133: Line 136:
 ^Parameter^Value^Description^ ^Parameter^Value^Description^
 |colliderAI.enabled|''true'', ''false''|Collider is enabled| |colliderAI.enabled|''true'', ''false''|Collider is enabled|
 +|colliderAI.hitElement| |Collider has been hit and it is owned by a BehaviorElement. Using [[behavior_statemachine#eventelementupdate|eventParameter.update]] or [[behavior_statemachine#eventelementcheck|eventParameter.check]] is valid.|
  
 This is an example of using this condition: This is an example of using this condition:
Line 152: Line 156:
 ====== State Machine Events ====== ====== State Machine Events ======
  
-This behavior sends no state machine events.+This behavior does not send events to state machine. 
 + 
 +BAAStateMachine and BAAVRHandStateMachine though does send ''collisionResponse'' if this behavior hit something. Use [[behavior_statemachine#eventelementupdate|eventParameter.update]] or [[behavior_statemachine#eventelementcheck|eventParameter.check]] to work with the element.
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
dragengine/modules/dragonscript/behavior_colliderai.1791563366.txt.gz · Last modified: by dragonlord