first visible RagDoll

This commit is contained in:
Jeena 2014-02-12 04:02:01 +01:00
parent e488beb203
commit 47bb5ef147
13 changed files with 189 additions and 41 deletions

View file

@ -18,8 +18,10 @@ function (Parent, CoreItem, Settings, NotificationCenter) {
RagDoll.prototype = Object.create(Parent.prototype);
RagDoll.prototype.createMesh = function() {
this.createLimbMesh("chest");
this.createLimbMesh("head");
this.createLimbMesh("chest");
for(var name in this.options.limbs) {
this.createLimbMesh(name);
}
};
RagDoll.prototype.createLimbMesh = function(name) {