mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
first step of rotating limbs in RubeDoll
This commit is contained in:
parent
7cd4cc702b
commit
2e01a093fc
5 changed files with 24 additions and 12 deletions
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue