separate(body1, body2) → {boolean}
The core separation function to separate two physics bodies.
Parameters
Name | Type | Description |
---|---|---|
body1 | Phaser.Physics.Ninja.Body | The Body object to separate. |
body2 | Phaser.Physics.Ninja.Body | The Body object to separate. |
Returns
boolean -
Returns true if the bodies collided, otherwise false.
- Source code: physics/ninja/World.js (Line 567)
Please login to continue.