removeShape(shape) → {boolean}
Remove a shape from the body. Will automatically update the mass properties and bounding radius.
Parameters
Name | Type | Description |
---|---|---|
shape | p2.Circle | p2.Rectangle | p2.Plane | p2.Line | p2.Particle | The shape to remove from the body. |
Returns
boolean -
True if the shape was found and removed, else false.
- Source code: physics/p2/Body.js (Line 1194)
Please login to continue.