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 [2025/05/09 14:10] dragonlorddragengine:modules:dragonscript:behavior_colliderai [2025/05/11 13:17] (current) – [colliderAI.update] dragonlord
Line 52: Line 52:
 |enabled|''true'', ''false''|Enable collider| |enabled|''true'', ''false''|Enable collider|
 |gravity|vector3|Set gravity| |gravity|vector3|Set gravity|
-|gravity.apply| |Apply gravity to linear velocity of collider| 
 |shape|''humanoid''|Set collider shape. Requires additional parameters| |shape|''humanoid''|Set collider shape. Requires additional parameters|
 |shape.radius|float|Set radius in meters of humanoid shape| |shape.radius|float|Set radius in meters of humanoid shape|
 |shape.height|float|Set height in meters of humanoid shape| |shape.height|float|Set height in meters of humanoid shape|
-|geometryFromCollider| |Set element position and orientation from collider| 
-|stop.turning| |Clear angular velocity of collider| 
-|stop.moving| |Clear linear velocity of collider| 
  
 This is an example of using this action: This is an example of using this action:
Line 66: Line 62:
   <parameter name='shape.radius'>0.3</parameter>   <parameter name='shape.radius'>0.3</parameter>
   <parameter name='shape.height'>1.8</parameter>   <parameter name='shape.height'>1.8</parameter>
 +</action>
 +</code>
 +
 +===== colliderAI.update =====
 +
 +Update collider ai.
 +
 +^Parameter^Value^Description^
 +|gravity.apply| |Apply gravity to linear velocity of collider|
 +|geometryFromCollider| |Set element position and orientation from collider|
 +|stop.turning| |Clear angular velocity of collider|
 +|stop.moving| |Clear linear velocity of collider|
 +
 +This is an example of using this action:
 +<code xml>
 +<action name='colliderAI.set'>
 +  <parameter name='gravity.apply'/>
 +</action>
 +</code>
 +
 +===== colliderAI.collision =====
 +
 +Handle collisions.
 +
 +^Parameter^Value^Description^
 +|stop| |Stop collider from moving. Prevents any further collision in this frame update.|
 +|sliding| |Applies sliding collision response|
 +
 +This is an example of using this action:
 +<code xml>
 +<action name='colliderAI.collision'>
 +  <parameter name='sliding'/>
 </action> </action>
 </code> </code>
dragengine/modules/dragonscript/behavior_colliderai.1746799830.txt.gz · Last modified: 2025/05/09 14:10 by dragonlord