From 0f3849491d6b83a5ea452c6820841d64b86f8ee0 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Sat, 8 Nov 2014 14:09:26 +0000 Subject: [PATCH] P2.BodyDebug circles were drawing at half widths (thanks @enriqueto #1288) --- README.md | 1 + src/physics/p2/BodyDebug.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ccf077a3..dff02a0ea 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,7 @@ Version 2.1.4 - "Bethal" - in development * Animation.setFrame used the wrong frames array if `useLocalFrameIndex` was `false` and a numeric frame ID was given (thanks @Skeptron #1284) * Fullscreen mode in IE11 now works (thanks @pnstickne) * Cache.addBitmapData now auto-creates a FrameData (thanks @pnstickne #1294 #1300) +* P2.BodyDebug circles were drawing at half widths (thanks @enriqueto #1288) 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 diff --git a/src/physics/p2/BodyDebug.js b/src/physics/p2/BodyDebug.js index 80f5ab214..41eb616c7 100644 --- a/src/physics/p2/BodyDebug.js +++ b/src/physics/p2/BodyDebug.js @@ -181,7 +181,7 @@ Phaser.Utils.extend(Phaser.Physics.P2.BodyDebug.prototype, { if (typeof color === 'undefined') { color = 0xffffff; } g.lineStyle(lineWidth, 0x000000, 1); g.beginFill(color, 1.0); - g.drawCircle(x, y, -radius); + g.drawCircle(x, y, -radius*2); g.endFill(); g.moveTo(x, y); g.lineTo(x + radius * Math.cos(-angle), y + radius * Math.sin(-angle));