Physics shape offset now finally working

This commit is contained in:
Richard Davey
2013-05-30 03:54:51 +01:00
parent 0fad46e04b
commit f2054f8a2a
12 changed files with 1545 additions and 1390 deletions
+3 -2
View File
@@ -48,13 +48,14 @@ module Phaser {
this.width = this.frameBounds.width;
this.height = this.frameBounds.height;
this.physics = new Phaser.Components.Physics(this);
// Transform related (if we add any more then move to a component)
this.origin = new Phaser.Vec2(0, 0);
this.scale = new Phaser.Vec2(1, 1);
this.skew = new Phaser.Vec2(0, 0);
this.physics = new Phaser.Components.Physics(this);
this.physics.shape.physics = this.physics;
}
/**