Hi!
I am getting a SkinnedMesh from a Collada scene (in the callback) and setting translation and rotation on it has no effect. Adding it to a dedicated scene object does not work neither.
class RobotClass extends Object3D {
public loadingCompleted(collada: ColladaModel) {
const scene = new Scene();
this.add(scene);
scene.rotateX(-1.57); // affects all other objects added manually to the scene later but the robot
const robot = colladaScene.getObjectByName(this.params.name) as SkinnedMesh; // object is indeed a skinned mesh
robot.rotateX(.57)
// updateMatrix/updateMatrixWorld have not effects
scene.add(robot);
}
}
Any idea how I can resolve this issue? When I add the whole collada.scene
all objects are placed correctly (as in the scene in Blender).
PS: I am using Typescript bindings