Physics.P2.Body#removeShape()

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)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.