This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| dragengine:modules:dragonscript:behavior_grabber [2025/05/13 14:05] – dragonlord | dragengine:modules:dragonscript:behavior_grabber [2026/10/09 16:35] (current) – dragonlord | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| Element class properties have the prefix '' | Element class properties have the prefix '' | ||
| - | ===== shape ===== | + | ===== bone ===== |
| - | Shape of collider used to detect grab spots. | + | Name of bone to attach to or empty string to attach to the parent element. |
| - | * Full name: '' | + | * Full name: '' |
| - | * Type: string | + | * Type: string |
| * Default Value: empty string | * Default Value: empty string | ||
| - | * Example (*.deeclass): | + | * Example (*.deeclass): |
| + | |||
| + | ===== collisionFilter ===== | ||
| + | |||
| + | Set [[gamedev:collisionfiltering|collision filter]]. Filter bits are defined using a list of names mapped to collision filter bit indices using BaseGameApp.getCollisionFilterMap(). | ||
| + | * Full name: '' | ||
| + | * Type: string. Format can be '' | ||
| + | * Default Value: '' | ||
| + | * Example (*.deeclass) <code xml>< | ||
| ===== position ===== | ===== position ===== | ||
| Line 45: | Line 53: | ||
| * Example (*.deeclass): | * Example (*.deeclass): | ||
| - | ===== bone ===== | + | ===== shape ===== |
| - | Name of bone to attach to or empty string to attach to the parent element. | + | Shape of collider used to detect grab spots. |
| - | * Full name: '' | + | * Full name: '' |
| - | * Type: string | + | * Type: string |
| * Default Value: empty string | * Default Value: empty string | ||
| - | * Example (*.deeclass): | + | * Example (*.deeclass): |
| ====== Events ====== | ====== Events ====== | ||
| Line 264: | Line 272: | ||
| <!-- optional: use vr hand with id instead of empty string --> | <!-- optional: use vr hand with id instead of empty string --> | ||
| <string name=' | <string name=' | ||
| - | | ||
| - | <!-- optional: set collision filter. default value ' | ||
| - | | ||
| - | | ||
| - | | ||
| - | are a list of bits to set. --> | ||
| - | <string name=' | ||
| | | ||
| <!-- optional: use behavior tree with id instead of empty string --> | <!-- optional: use behavior tree with id instead of empty string --> | ||