mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed skateboard and mesh positioning
This commit is contained in:
parent
7220e3b388
commit
bdab2a5760
9 changed files with 83 additions and 45 deletions
|
|
@ -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
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue