b3dCountCollisions

Returns number of collisions for entity this frame (new contacts only, cleared each frame). Takes entity (entity handle with physics body). Returns collision count (0 if no collisions, >0 if collided).

3D Graphics

Parameters & Returns

Parameters

entity Int

Returns

Int

Quick Summary

Returns number of collisions for entity this frame (new contacts only, cleared each frame). Takes entity (entity handle with physics body). Returns collision count (0 if no collisions, >0 if collided).

Technical Exegesis...

Returns number of collisions for entity this frame (new contacts only, cleared each frame). Takes entity (entity handle with physics body). Returns collision count (0 if no collisions, >0 if collided). Queries g_entityCollisions map for entity, returns vector size (number of CollisionData entries). Use to check if entity collided, iterate collision details, or react to multiple impacts.

This function counts collisions for entity.

Example

Example.bam
; No example implemented yet