mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +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
|
||||
*/
|
||||
var defaultSettings = {
|
||||
pixelsPerLengthUnit: 20,
|
||||
pixelsPerLengthUnit: game.physics.p2.mpx(1),
|
||||
debugPolygons: false,
|
||||
lineWidth: 1,
|
||||
alpha: 0.5
|
||||
|
|
Loading…
Reference in a new issue