Body/Group testing complete. Now focusing on n-way collision.

This commit is contained in:
photonstorm
2014-02-03 04:09:30 +00:00
parent 28f71ed86d
commit 8315973c5d
6 changed files with 255 additions and 250 deletions
-4
View File
@@ -417,16 +417,12 @@ Phaser.Sprite.prototype.preUpdate = function() {
this.world.setTo(this.parent.position.x + this.x, this.parent.position.y + this.y);
this.worldTransform[2] = this.world.x;
this.worldTransform[5] = this.world.y;
console.log('Sprite initGroup', this.world);
// console.log('Sprite initGroup', this.group.x, this.group.y);
// console.log('Sprite initGroup', this.parent.position);
this._cache.fresh = false;
if (this.body)
{
this.body.x = (this.world.x - (this.anchor.x * this.width)) + this.body.offset.x;
this.body.y = (this.world.y - (this.anchor.y * this.height)) + this.body.offset.y;
// this.body.preUpdate();
this.body.preX = this.body.x;
this.body.preY = this.body.y;
}