| Parameter | Description |
|---|---|
| shapes | The shapes to destroy. |
| updateBodyMass | Whether to update the body mass configuration. Not doing so is faster, especially when destroying multiple shapes. |
Destroy a batch of shapes, destroying all Contact the shapes are involved in. Any invalid shapes will be ignored including chain segment shapes created via a PhysicsChain (the chain must be destroyed)." Owned shapes will produce a warning and will not be destroyed (PhysicsShape.SetOwner). See MassConfiguration.
| Parameter | Description |
|---|---|
| shapes | The shapes to destroy. |
| updateBodyMass | Whether to update the body mass configuration. Not doing so is faster, especially when destroying multiple shapes. |
| ownerKey | Optional owner key returned when using PhysicsShape.SetOwner. |
Destroy a batch of shapes, destroying all contacts the shapes are involved in. Any invalid shapes are ignored, including chain segment shapes created by a chain, which must be destroyed through their owning chain instead. A shape owned by a different owner key is skipped and left valid; a shape with no owner, or one matching the given owner key, is destroyed. One summary warning reports how many shapes were skipped this way, rather than one warning per shape.