World:getColliderCount
EditReturns the number of colliders in the world. This includes sleeping and disabled colliders.
count = World:getColliderCount()
Arguments
None
Returns
Name | Type | Description |
count | number | The number of colliders in the World. |
Notes
The world has a maximum number of colliders, configured when creating the world. The default is 8192. Trying to create more than this will error.