pxmi(v) → {number}
Convert pixel value to p2 physics scale (meters) 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 1822)
Please login to continue.