self:get_contact_count
Client
Retrieves the number of contacts currently recorded on the rigid body
Syntax
local count = self:get_contact_count()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
int | count | Current contact count |
Examples
local entity = physics.rigid.create()
core.engine.print("info", "Rigid body contact count:", entity:get_contact_count())