first step of rotating limbs in RubeDoll

This commit is contained in:
Jeena 2015-06-28 16:26:52 -07:00
parent 7cd4cc702b
commit 2e01a093fc
5 changed files with 24 additions and 12 deletions

View file

@ -95,8 +95,6 @@ function (Parent, Layer, Settings, Nc) {
this.characterName = "Chuck";
this.lastFlipDirection = -options.direction || 1;
console.log(this.lastFlipDirection);
Parent.call(this, physicsEngine, uid, options);
}
@ -169,6 +167,8 @@ function (Parent, Layer, Settings, Nc) {
};
RubeDoll.prototype.render = function() {
Parent.prototype.render.call(this);
if(this.limbs) {
for(var name in this.limbMeshes) {
if(this.limbs[name]) {