PDA

View Full Version : Navigating an avatar using mouse position(2D) in 3D environment


james007
10-12-2009, 09:25 PM
Hi,

I am trying to navigate an avatar using mouse e.dx and e.dy position in 3D environment.

Could you give any idea to how use e.dx and e.dy to solve the problem?

Thanks

James

(on viz.MOUSE_MOVE_EVENT event, I am having e.dx and e.dy

e.dx
The relative movement of the mouse in the X direction. The value is in raw mouse units. Negative values indicate the mouse was moved to the left. Positive values indicate the mouse was moved to the right.

e.dy
The relative movement of the mouse in the Y direction. The value is in raw mouse units. Negative values indicate the mouse was moved downward. Positive values indicate the mouse was moved upward.

)

farshizzo
10-16-2009, 11:29 AM
Can you be more specific in how you want to control the avatar? Do you want a First-person-shooter type control? Have you looked at the Viewpoint control tutorial (http://www.worldviz.com/vizhelp/Tutorial__Viewpoint_control.htm)?