This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dragengine:modules:dragonscript:behavior_avoidcollision [2025/05/04 23:16] – dragonlord | dragengine:modules:dragonscript:behavior_avoidcollision [2026/10/09 16:18] (current) – dragonlord | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| ====== Element Class Properties ====== | ====== Element Class Properties ====== | ||
| Element class properties have the prefix '' | Element class properties have the prefix '' | ||
| + | |||
| + | ===== collisionFilter ===== | ||
| + | |||
| + | Set [[gamedev: | ||
| + | * Full name: '' | ||
| + | * Type: string. Format can be '' | ||
| + | * Default Value: '' | ||
| + | * Example (*.deeclass) <code xml>< | ||
| ===== radius ===== | ===== radius ===== | ||
| Line 41: | Line 49: | ||
| ===== avoidCollision.set ===== | ===== avoidCollision.set ===== | ||
| - | Set one or more force field parameters. | + | Set one or more avoid collision |
| ^Parameter^Value^Description^ | ^Parameter^Value^Description^ | ||
| Line 54: | Line 62: | ||
| </ | </ | ||
| - | ===== avoidCollision.stop ===== | + | ===== avoidCollision.update |
| - | Stop avoiding collision. | + | Update avoid collision. |
| + | |||
| + | ^Parameter^Value^Description^ | ||
| + | |stop| |Stop avoiding collision| | ||
| This is an example of using this action: | This is an example of using this action: | ||
| <code xml> | <code xml> | ||
| - | <action name=' | + | <action name=' |
| + | < | ||
| + | </action> | ||
| </ | </ | ||
| Line 197: | Line 210: | ||
| | | ||
| < | < | ||
| - | <!-- 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 behavior tree with id instead of empty string --> | <!-- optional: use behavior tree with id instead of empty string --> | ||
| <string name=' | <string name=' | ||