fixed skateboard and mesh positioning

This commit is contained in:
Jeena 2014-01-16 19:33:37 +01:00
parent 7220e3b388
commit bdab2a5760
9 changed files with 83 additions and 45 deletions

View file

@ -31,8 +31,7 @@ function (Parent, Settings, NotificationCenter) {
callback,
{
width: Settings.TILE_SIZE,
height: Settings.TILE_SIZE,
pivot: "mb"
height: Settings.TILE_SIZE
}
);
};
@ -47,8 +46,8 @@ function (Parent, Settings, NotificationCenter) {
NotificationCenter.trigger("view/updateMesh",
this.mesh,
{
x: this.options.x * Settings.TILE_SIZE,
y: this.options.y * Settings.TILE_SIZE,
x: this.body.GetPosition().x * Settings.RATIO - Settings.TILE_SIZE / 2,
y: this.body.GetPosition().y * Settings.RATIO - Settings.TILE_SIZE / 2
}
);
}