This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| dragengine:modules:dragonscript:behavior_lookat [2025/05/13 13:57] – dragonlord | dragengine:modules:dragonscript:behavior_lookat [2026/10/09 16:31] (current) – dragonlord | ||
|---|---|---|---|
| Line 23: | Line 23: | ||
| Element class properties have the prefix '' | Element class properties have the prefix '' | ||
| - | ===== range ===== | + | ===== bone ===== |
| - | Set range in meters. Elements will only be detected this far. | + | Set bone from where the test ray is cast. |
| - | * Full name: '' | + | * Full name: '' |
| - | * Type: float | + | * Type: string |
| - | * Default Value: | + | * Default Value: |
| - | * Restriction: At least 0 | + | * Example (*.deeclass) <code xml>< |
| - | * Example (*.deeclass) <code xml><float name='lookAt.range'>3</float></ | + | |
| + | ===== 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><string | ||
| ===== origin ===== | ===== origin ===== | ||
| Line 38: | Line 45: | ||
| * Example (*.deeclass) <code xml>< | * Example (*.deeclass) <code xml>< | ||
| - | ===== bone ===== | + | ===== range ===== |
| - | Set bone from where the test ray is cast. | + | Set range in meters. Elements will only be detected this far. |
| - | * Full name: '' | + | * Full name: '' |
| - | * Type: string | + | * Type: float |
| - | * Default Value: | + | * Default Value: |
| - | * Example (*.deeclass) <code xml><string | + | * Restriction: |
| + | * Example (*.deeclass) <code xml><float name=' | ||
| ====== Events ====== | ====== Events ====== | ||
| Line 218: | Line 226: | ||
| | | ||
| < | < | ||
| - | <!-- optional: set collision filter. default value '3:0 1 2 3' which means | ||
| - | | ||
| - | | ||
| - | BaseGameApp.CollisionFilterBit.dynamic, | ||
| - | BaseGameApp.CollisionFilterBit.actorAI. | ||
| - | | ||
| - | are a list of bits to set. --> | ||
| - | <string name=' | ||
| - | | ||
| <!-- optional: use component with id instead of empty string --> | <!-- optional: use component with id instead of empty string --> | ||
| <string name=' | <string name=' | ||