, Jr. Member
KobeJames - 11 June 2012 02:01 AM
may i have a look your code?
the code is nothing special:
current_view = new View3D();
this.addChild(current_view);
mainCharDummy=new Mesh(new SphereGeometry(300,6,6), material);
current_view.scene.addChild(mainCharDummy);
mainCharDummy.mouseEnabled=true;
mainCharDummy.addEventListener(MouseEvent3D.MOUSE_MOVE,modelMouseDown);
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
private function modelMouseDown(evt:MouseEvent3D):void
{
msg.addMsg(“mc,”); //msg is just like trace but visible on the Stage
}
private function onEnterFrame(evt:Event):void
{
mainCharDummy.rotationY++;
msg.addMsg(“r,”);
current_view.render();
}