Mostly working, just need to apply a max overlap to avoid tunneling, although a ray would be better.

This commit is contained in:
photonstorm
2013-12-06 02:34:28 +00:00
parent 1f513a333e
commit 8e289e6b7c
3 changed files with 171 additions and 25 deletions
+2
View File
@@ -680,6 +680,8 @@ Phaser.Sprite.prototype.postUpdate = function() {
if (this.body)
{
this.body.postUpdate();
this.x = Math.round(this.x);
this.y = Math.round(this.y);
}
if (this.fixedToCamera)