Collider:destroy

Edit

Destroys the Collider, removing it from the World and destroying all Shapes and Joints attached to it.

Collider:destroy()

Arguments

None

Returns

Nothing

Notes

After a Collider is destroyed, calling methods on it or passing it to a function will throw an error.

See also