User Tools

Site Tools


dragengine:modules:dragonscript:behavior_avoidcollision

Differences

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

Link to this comparison view

Next revision
Previous revision
dragengine:modules:dragonscript:behavior_avoidcollision [2025/03/12 01:56] – created dragonlorddragengine:modules:dragonscript:behavior_avoidcollision [2025/03/13 17:08] (current) dragonlord
Line 1: Line 1:
 {{tag>dragonscript behavior}} {{tag>dragonscript behavior}}
 <WRAP youarehere> <WRAP youarehere>
-[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[abstractions#behavior_elementsquick_and_easy_development|Behavior Elements: Quick and Easy Development]] >> **ECBehaviorAvoidCollision**+[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[dragengine:modules:dragonscript:abstractions|Abstraction Layers: How you want to build your Game]] >> [[dragengine:modules:dragonscript:behavior_elements|Behavior Elements]] >> **ECBehaviorAvoidCollision**
 </WRAP> </WRAP>
  
Line 15: Line 15:
 To use this behavior add it to the element class and make sure to call setShapesSphere() to set up the collision test shapes. The best time to do this is either in BehaviorElement.init() or inside BaseActorAction if you need to change them per action. To use this behavior add it to the element class and make sure to call setShapesSphere() to set up the collision test shapes. The best time to do this is either in BehaviorElement.init() or inside BaseActorAction if you need to change them per action.
  
 +See also:
 +  * [[gamedev:colliders|Colliders]]
 ====== Instance Counts ====== ====== Instance Counts ======
 This behavior can be used only once on an element. This behavior can be used only once on an element.
Line 34: Line 36:
 ====== Required Behaviors ====== ====== Required Behaviors ======
  
-This behavior requires these other behaviors: 
   * [[behavior_actormover|ECBehaviorActorMover]]   * [[behavior_actormover|ECBehaviorActorMover]]
  
 ====== Optional Behaviors ====== ====== Optional Behaviors ======
  
-This behavior does support these optional behaviors: 
   * [[behavior_rideon|ECBehaviorRideOn]]: Avoid while respecting ground movement.   * [[behavior_rideon|ECBehaviorRideOn]]: Avoid while respecting ground movement.
  
dragengine/modules/dragonscript/behavior_avoidcollision.1741744582.txt.gz · Last modified: 2025/03/12 01:56 by dragonlord