mirror of
https://github.com/wassname/phaser.git
synced 2026-07-13 01:00:12 +08:00
Mostly working, just need to apply a max overlap to avoid tunneling, although a ray would be better.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user