User Tools

Site Tools


dragengine:modules:dragonscript:behavior_collider

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_collider [2025/03/10 23:33] – created dragonlorddragengine:modules:dragonscript:behavior_collider [2025/03/13 17:05] (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]] >> **ECBehaviorCollider**+[[: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]] >> **ECBehaviorCollider**
 </WRAP> </WRAP>
  
Line 25: Line 25:
 Hence these two use cases are possible depending on the order the behaviors are added: Shape Collision, Component Collision. See [[#element_Class_example|Examples]] Hence these two use cases are possible depending on the order the behaviors are added: Shape Collision, Component Collision. See [[#element_Class_example|Examples]]
  
 +See also:
 +  * [[gamedev:colliders|Colliders]]
 ====== Instance Counts ====== ====== Instance Counts ======
 This behavior can only be addec once on an element. This behavior can only be addec once on an element.
Line 33: Line 35:
 ===== physicsType ===== ===== physicsType =====
 Set physics type. Set physics type.
-  * Full name: ''customColor.physicsType''+  * Full name: ''collider.physicsType''
   * Type: enumeration   * Type: enumeration
   * <WRAP>Allowed Values:   * <WRAP>Allowed Values:
Line 42: Line 44:
 </WRAP> </WRAP>
   * Default Value: ''none''   * Default Value: ''none''
-  * Example (*.deeclass) <code xml><string name='customColor.physicsType'>dynamic</string></code>+  * Example (*.deeclass) <code xml><string name='collider.physicsType'>dynamic</string></code>
  
 ===== localGravity ===== ===== localGravity =====
 Set local gravity or ''null'' to use the world gravity. Set local gravity or ''null'' to use the world gravity.
-  * Full name: ''customColor.localGravity''+  * Full name: ''collider.localGravity''
   * Type: 3-component float vector   * Type: 3-component float vector
   * Default Value: ''null''   * Default Value: ''null''
-  * Example (*.deeclass) <code xml><vector name='customColor.localGravity' x='0' y='-0.5' z='0'/></code>+  * Example (*.deeclass) <code xml><vector name='collider.localGravity' x='0' y='-0.5' z='0'/></code>
  
 ===== weight ===== ===== weight =====
 Set weight in kg. Set weight in kg.
-  * Full name: ''customColor.weight''+  * Full name: ''collider.weight''
   * Type: float   * Type: float
   * Default Value: 1   * Default Value: 1
   * Restriction: At least 0   * Restriction: At least 0
-  * Example (*.deeclass) <code xml><float name='customColor.weight'>1.5</float></code>+  * Example (*.deeclass) <code xml><float name='collider.weight'>1.5</float></code>
  
 ===== enabled ===== ===== enabled =====
 Set enable collider. Set enable collider.
-  * Full name: ''customColor.enabled''+  * Full name: ''collider.enabled''
   * Type: boolean   * Type: boolean
   * Default Value: true   * Default Value: true
-  * Example (*.deeclass) <code xml><boolean name='customColor.enabled'>false</boolean></code>+  * Example (*.deeclass) <code xml><boolean name='collider.enabled'>false</boolean></code>
  
 ===== shape ===== ===== shape =====
 Set shape if no component is used. Set shape if no component is used.
-  * Full name: ''customColor.shape''+  * Full name: ''collider.shape''
   * Type: string (shape format). See "Shape List Encoding" in CodecPropertyString.   * Type: string (shape format). See "Shape List Encoding" in CodecPropertyString.
   * Default Value: empty string   * Default Value: empty string
-  * Example (*.deeclass) <code xml><string name='customColor.shape'>box:position,0,0.5,0:extends,2,1,0.5</string></code>+  * Example (*.deeclass) <code xml><string name='collider.shape'>box:position,0,0.5,0:extends,2,1,0.5</string></code>
  
-===== Events =====+====== Events ======
  
 This behavior has no events. This behavior has no events.
Line 83: Line 85:
 ====== Optional Behaviors ====== ====== Optional Behaviors ======
  
-This behavior supports these optional behaviors: +  [[behavior_component|ECBehaviorComponent]]: If present ColliderComponent is created otherwise ColliderVolume.
-  * ECBehaviorComponent: If present ColliderComponent is created otherwise ColliderVolume.+
  
 ====== Persistency ====== ====== Persistency ======
dragengine/modules/dragonscript/behavior_collider.1741649625.txt.gz · Last modified: 2025/03/10 23:33 by dragonlord