Hi!
I have loaded am OBJ file like this:
private function loadObjectFileObj(url:String):void
{
loader = Obj.load(url);
this.view3D.scene.addChild(loader);
loader.scale(30);
loader.addOnSuccess(onObjLoadSucces);
}
private function onObjLoadSucces(e:Loader3DEvent):void
{
this.object3D = e.loader.handle;
this.object3D.x = this.object3D.y = this.object3D.z = 0;
}
Then I have tried to move the loaded model with this code, for
example:
loader.y = 50;
loader.moveTo(0,200,0);
But the model's position doesn't change at all. Am I doing something
wrong? Should I change something else?
Sorry if this is an stupid question but I can not find the answer
anywhere.
Thanks in advance