rotation doesnt update until i click the mouse

Software: Away3D 4.x

angvzp0x, Newbie
Posted: 05 June 2012 05:19 PM   Total Posts: 10

i am setting the rotation of an ObjectContainer3D based on the view direction i set in a separate 3D scene. but it doesnt update the position until i release the mouse and click it once more.

this is exactly the behavior i was getting in my app working in 2D flex, but i just wondered if anyone could help me here.

i create my own custom event on mouse move in the camera view scene with pitch and yaw of the camera, then dispatch that event to the Away3D Scene3D
which handles it and sets the rotation of my object. ( a 3rd person view of the camera )

is there a way to force the scene to update the positions of its children?

   

angvzp0x, Newbie
Posted: 05 June 2012 06:00 PM   Total Posts: 10   [ # 1 ]

err nevermimd, i am an idiot….

addEventListener( MouseEvent.MOUSE_DOWN, onMouseMove );

   

Avatar
Fabrice Closier, Administrator
Posted: 05 June 2012 07:53 PM   Total Posts: 1265   [ # 2 ]

happends to the best!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X