mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
parent
89c5e4a5d8
commit
ed23753c04
17 changed files with 286 additions and 224 deletions
|
|
@ -71,7 +71,9 @@ function (Parent, Settings, NotificationCenter, Exception) {
|
|||
|
||||
NotificationCenter.trigger("view/createAnimatedMesh", texturePaths, callback, {
|
||||
visible: false,
|
||||
pivot: "mb"
|
||||
pivot: "mb",
|
||||
width: 35,
|
||||
height: 40
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -82,7 +84,11 @@ function (Parent, Settings, NotificationCenter, Exception) {
|
|||
self.headMesh = mesh;
|
||||
NotificationCenter.trigger("view/addMesh", mesh);
|
||||
}
|
||||
NotificationCenter.trigger("view/createMesh", texturePath, callback, { pivot: "mb" });
|
||||
NotificationCenter.trigger("view/createMesh", texturePath, callback, {
|
||||
pivot: "mb",
|
||||
width: 10,
|
||||
height: 12
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -130,7 +136,8 @@ function (Parent, Settings, NotificationCenter, Exception) {
|
|||
this.animatedMeshes[this.actionState],
|
||||
{
|
||||
x: this.body.GetPosition().x * Settings.RATIO,
|
||||
y: this.body.GetPosition().y * Settings.RATIO
|
||||
y: this.body.GetPosition().y * Settings.RATIO,
|
||||
rotation: this.body.GetAngle()
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue