mirror of
https://github.com/wassname/phaser.git
synced 2026-07-09 00:20:17 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user