ArcadePhysics.setBoundsToWorld implemented. Body.setCircle, setRectangle and setPolygon all working. Tidying up Body class. Need to add tile collision special case handler next.

This commit is contained in:
photonstorm
2014-01-28 05:01:17 +00:00
parent 90c09374af
commit 9deb5514a2
6 changed files with 464 additions and 164 deletions
+1 -1
View File
@@ -604,7 +604,7 @@ Phaser.Sprite.prototype.updateBounds = function() {
// Update our physics bounds
if (this.body)
{
this.body.updateBounds(this.center.x, this.center.y, this._cache.scaleX, this._cache.scaleY);
this.body.updateScale(this._cache.scaleX, this._cache.scaleY);
}
};