Skip to content

Commit 0f38494

Browse files
committed
P2.BodyDebug circles were drawing at half widths (thanks @enriqueto phaserjs#1288)
1 parent a7710c5 commit 0f38494

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ Version 2.1.4 - "Bethal" - in development
138138
* Animation.setFrame used the wrong frames array if `useLocalFrameIndex` was `false` and a numeric frame ID was given (thanks @Skeptron #1284)
139139
* Fullscreen mode in IE11 now works (thanks @pnstickne)
140140
* Cache.addBitmapData now auto-creates a FrameData (thanks @pnstickne #1294 #1300)
141+
* P2.BodyDebug circles were drawing at half widths (thanks @enriqueto #1288)
141142

142143

143144
For details about changes made in previous versions of Phaser see the full Change Log at https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md

src/physics/p2/BodyDebug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Phaser.Utils.extend(Phaser.Physics.P2.BodyDebug.prototype, {
181181
if (typeof color === 'undefined') { color = 0xffffff; }
182182
g.lineStyle(lineWidth, 0x000000, 1);
183183
g.beginFill(color, 1.0);
184-
g.drawCircle(x, y, -radius);
184+
g.drawCircle(x, y, -radius*2);
185185
g.endFill();
186186
g.moveTo(x, y);
187187
g.lineTo(x + radius * Math.cos(-angle), y + radius * Math.sin(-angle));

0 commit comments

Comments
 (0)