mpxi(v) → {number}
Convert p2 physics value (meters) to pixel scale and inverses it.
By default Phaser uses a scale of 20px per meter.
If you need to modify this you can over-ride these functions via the Physics Configuration object.
Parameters
Name | Type | Description |
---|---|---|
v | number | The value to convert. |
Returns
number -
The scaled value.
- Source code: physics/p2/World.js (Line 1807)
Please login to continue.