getBody(object) → {p2.Body}
Checks the given object to see if it has a p2.Body and if so returns it.
Parameters
Name | Type | Description |
---|---|---|
object | object | The object to check for a p2.Body on. |
Returns
p2.Body -
The p2.Body, or null if not found.
- Source code: physics/p2/World.js (Line 1286)
Please login to continue.