World:getColliderCount

Edit

Returns the number of colliders in the world. This includes sleeping and disabled colliders.

count = World:getColliderCount()

Arguments

None

Returns

NameTypeDescription
countnumber 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.

See also