Shape:destroy
EditDestroys the Shape, removing it from the Collider it's attached to.
Shape:destroy()
Arguments
None
Returns
Nothing
Notes
Calling methods on the Shape after destroying it will error (except for Shape:isDestroyed
).
If the Shape is attached to a Collider with automatic mass enabled, the collider's mass properties will update.