This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_collider [2025/03/11 02:32] – [Optional Behaviors] dragonlord | dragengine:modules:dragonscript:behavior_collider [2025/03/13 17:05] (current) – dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
<WRAP youarehere> | <WRAP youarehere> | ||
- | [[: | + | [[: |
</ | </ | ||
Line 25: | Line 25: | ||
Hence these two use cases are possible depending on the order the behaviors are added: Shape Collision, Component Collision. See [[# | Hence these two use cases are possible depending on the order the behaviors are added: Shape Collision, Component Collision. See [[# | ||
+ | See also: | ||
+ | * [[gamedev: | ||
====== 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: '' | + | * Full name: '' |
* Type: enumeration | * Type: enumeration | ||
* < | * < | ||
Line 42: | Line 44: | ||
</ | </ | ||
* Default Value: '' | * Default Value: '' | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== localGravity ===== | ===== localGravity ===== | ||
Set local gravity or '' | Set local gravity or '' | ||
- | * Full name: '' | + | * Full name: '' |
* Type: 3-component float vector | * Type: 3-component float vector | ||
* Default Value: '' | * Default Value: '' | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== weight ===== | ===== weight ===== | ||
Set weight in kg. | Set weight in kg. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: float | * Type: float | ||
* Default Value: 1 | * Default Value: 1 | ||
* Restriction: | * Restriction: | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== enabled ===== | ===== enabled ===== | ||
Set enable collider. | Set enable collider. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: boolean | * Type: boolean | ||
* Default Value: true | * Default Value: true | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== shape ===== | ===== shape ===== | ||
Set shape if no component is used. | Set shape if no component is used. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: string (shape format). See "Shape List Encoding" | * Type: string (shape format). See "Shape List Encoding" | ||
* Default Value: empty string | * Default Value: empty string | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
- | ===== 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]]: | * [[behavior_component|ECBehaviorComponent]]: | ||