hello, I'm trying to do that when you click a 3d object, this object
rotates, so far in the event I put a trace, because when I use the
parameter event.object which is what I used to work for me not
primitive objects algiuen might say that happens, please how can I fix
this

Thank you very much

This is the code

//I put him on the scene
logo = Max3DS.load("assets/vwc.3ds",
{texturePath:"assets/",name:"logo3D",loadersize:100});
obj3D = logo.handle;
obj3D.useHandCursor = true;
View.scene.addChild(logo);

// This puts the event
obj3D.addOnMouseDown(moving);

//this function
function moving(event:MouseEvent3D):void{
        trace("si");
        event.object.rotationX += 50;
}

thanks a lot again !!!


Reply via email to