This commit is contained in:
Jeena 2014-02-10 22:22:14 +01:00
parent 89c5e4a5d8
commit ed23753c04
17 changed files with 286 additions and 224 deletions

View file

@ -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()
}
);