| Parameter | Description |
|---|---|
| bodies | The bodies to destroy. |
Destroy a batch of bodies. Any invalid bodies will be ignored. Owned bodies will produce a warning and will not be destroyed (See PhysicsBody.SetOwner).
| Parameter | Description |
|---|---|
| bodies | The bodies to destroy. |
| ownerKey | Optional owner key returned when using PhysicsBody.SetOwner. |
Destroy a batch of bodies. Any invalid bodies are ignored. A body owned by a different owner key is skipped and left valid; a body with no owner, or one matching the given owner key, is destroyed. One summary warning reports how many bodies were skipped this way, rather than one warning per body.
See PhysicsBody.SetOwner.