mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added ragdoll with one limb
This commit is contained in:
parent
b55f6d58fc
commit
e488beb203
18 changed files with 511 additions and 132 deletions
|
|
@ -35,7 +35,11 @@ function (Parent, Settings, NotificationCenter) {
|
|||
callback,
|
||||
{
|
||||
width: Settings.TILE_SIZE,
|
||||
height: Settings.TILE_SIZE
|
||||
height: Settings.TILE_SIZE,
|
||||
pivot: {
|
||||
x: Settings.TILE_SIZE / 2 * Settings.TILE_RATIO,
|
||||
y: Settings.TILE_SIZE / 2 * Settings.TILE_RATIO
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
|
|
@ -50,8 +54,8 @@ function (Parent, Settings, NotificationCenter) {
|
|||
NotificationCenter.trigger("view/updateMesh",
|
||||
this.mesh,
|
||||
{
|
||||
x: this.body.GetPosition().x * Settings.RATIO - Settings.TILE_SIZE / 2,
|
||||
y: this.body.GetPosition().y * Settings.RATIO - Settings.TILE_SIZE / 2
|
||||
x: this.body.GetPosition().x * Settings.RATIO,
|
||||
y: this.body.GetPosition().y * Settings.RATIO
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue