WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Navigating an avatar using mouse position(2D) in 3D environment (https://forum.worldviz.com/showthread.php?t=2317)

james007 10-12-2009 09:25 PM

Navigating an avatar using mouse position(2D) in 3D environment
 
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?


All times are GMT -7. The time now is 10:36 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC