Description of the problem
I am getting a SkinnedMesh from a Collada scene (in the callback) and setting translation and rotation on it have no affect. Adding it to a dedicated scene object does not have the desired effect neither.
class RobotClass extends Object3D {
public loadingCompleted(collada: ColladaModel) {
const scene = new Scene();
this.add(scene);
scene.rotateX(-1.57); // affects all objects in the scene 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
object positioning is not an issue.
PS: I am using Typescript bindings
Three.js version
- Dev
- r90
- …
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS
@StefanUlbrich if you’d like to post in the forums or Stack Overflow we will be able to help you.