More collision test cases and fixing a few issues as I go :)

This commit is contained in:
Richard Davey
2013-09-13 03:07:39 +01:00
parent f812b92b8a
commit ecc91fb4e0
7 changed files with 167 additions and 9 deletions
+3
View File
@@ -167,6 +167,9 @@ Phaser.Sprite = function (game, x, y, key, frame) {
// Set-up the physics body
this.body = new Phaser.Physics.Arcade.Body(this);
this.velocity = this.body.velocity;
this.acceleration = this.body.acceleration;
// World bounds check
this.inWorld = Phaser.Rectangle.intersects(this.bounds, this.game.world.bounds);
this.inWorldThreshold = 0;