Hello,
thanks for share this project, i'm developing a function to let user change the model (Fox and girl).
i use load weboji
`'load_weboji': function(modelURL, matParams, callback){
return load_model(modelURL, false, function(){
that.set_materialParameters(matParams);
if (callback) callback();
});
},`
the issue is i'm setting the init position [0, -80 , 0]
and works well, but when i change the model
the _ThreeMorphAnimMesh
is removed from the scene and set the position to [0,0,0]
i tried with set_positionScale( [0, -80, 0], 1)
but i get Cannot read property 'fromArray' of undefined
in this line
` set_positionScale: function(vector3Array, scale){
if (vector3Array){
_ThreeMorphAnimMesh.position.fromArray(vector3Array);
}
if (typeof(scale) !== 'undefined'){
_ThreeMorphAnimMesh.scale.set(-scale, scale, scale);
}
},`
am i doing anything wrong? did i miss something?