Skip to content

Commit c1c2e6b

Browse files
committed
Removed left-over Body.isCircle checks.
1 parent d8d0c8a commit c1c2e6b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/physics/arcade/Body.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -646,11 +646,6 @@ Phaser.Physics.Arcade.Body.prototype = {
646646
*/
647647
setSize: function (width, height, offsetX, offsetY) {
648648

649-
if (this.isCircle)
650-
{
651-
return;
652-
}
653-
654649
if (offsetX === undefined) { offsetX = this.offset.x; }
655650
if (offsetY === undefined) { offsetY = this.offset.y; }
656651

@@ -711,7 +706,7 @@ Phaser.Physics.Arcade.Body.prototype = {
711706
*/
712707
hitTest: function (x, y) {
713708

714-
return (this.isCircle) ? Phaser.Circle.contains(this, x, y) : Phaser.Rectangle.contains(this, x, y);
709+
return Phaser.Rectangle.contains(this, x, y);
715710

716711
},
717712

0 commit comments

Comments
 (0)