This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_colliderai [2025/05/09 14:08] – dragonlord | dragengine:modules:dragonscript:behavior_colliderai [2025/05/11 13:17] (current) – [colliderAI.update] dragonlord | ||
---|---|---|---|
Line 52: | Line 52: | ||
|enabled|'' | |enabled|'' | ||
|gravity|vector3|Set gravity| | |gravity|vector3|Set gravity| | ||
- | |gravity.apply| |Apply gravity to linear velocity of collider| | ||
|shape|'' | |shape|'' | ||
|shape.radius|float|Set radius in meters of humanoid shape| | |shape.radius|float|Set radius in meters of humanoid shape| | ||
|shape.height|float|Set height in meters of humanoid shape| | |shape.height|float|Set height in meters of humanoid shape| | ||
- | |geometryFromCollider| |Set element position and orientation from collider| | ||
- | |stop.turning| |Clear angular velocity of collider| | ||
- | |stop.moving| |Clear linear velocity of collider| | ||
This is an example of using this action: | This is an example of using this action: | ||
Line 66: | Line 62: | ||
< | < | ||
< | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== colliderAI.update ===== | ||
+ | |||
+ | Update collider ai. | ||
+ | |||
+ | ^Parameter^Value^Description^ | ||
+ | |gravity.apply| |Apply gravity to linear velocity of collider| | ||
+ | |geometryFromCollider| |Set element position and orientation from collider| | ||
+ | |stop.turning| |Clear angular velocity of collider| | ||
+ | |stop.moving| |Clear linear velocity of collider| | ||
+ | |||
+ | This is an example of using this action: | ||
+ | <code xml> | ||
+ | <action name=' | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== colliderAI.collision ===== | ||
+ | |||
+ | Handle collisions. | ||
+ | |||
+ | ^Parameter^Value^Description^ | ||
+ | |stop| |Stop collider from moving. Prevents any further collision in this frame update.| | ||
+ | |sliding| |Applies sliding collision response| | ||
+ | |||
+ | This is an example of using this action: | ||
+ | <code xml> | ||
+ | <action name=' | ||
+ | < | ||
</ | </ | ||
</ | </ |