mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Fix p2 BodyDebug pixelsPerLengthUnit bug.
When mpx doesn’t return default value, the debug body size and position goes wrong.
This commit is contained in:
parent
f68f25afb2
commit
632c258d8d
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ Phaser.Physics.P2.BodyDebug = function(game, body, settings) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
var defaultSettings = {
|
var defaultSettings = {
|
||||||
pixelsPerLengthUnit: 20,
|
pixelsPerLengthUnit: game.physics.p2.mpx(1),
|
||||||
debugPolygons: false,
|
debugPolygons: false,
|
||||||
lineWidth: 1,
|
lineWidth: 1,
|
||||||
alpha: 0.5
|
alpha: 0.5
|
||||||
|
|
Loading…
Add table
Reference in a new issue