PDA

View Full Version : Avatar walking + camera free look


kovitch
08-05-2011, 08:31 AM
Hi,

I'm using the code provided in the following link:
http://forum.worldviz.com/showthread.php?t=2915&highlight=avatar+walking

In this example, in order to change the moving direction, we can use the mouse click by performing a click on the scene, holding and moving the mouse in any direction.

Is there a way to use the mouse direction to navigate without having to click&hold on the scene?

Best regars,

Alex.

Jeff
08-05-2011, 01:41 PM
The code there uses vizcam.PivotNavigate to change the orientation so you could create your own custom PivotNavigate class to modify that behavior. It may just be a small change within _camMouseMove where the button state is checked before rotating the view.

kovitch
08-08-2011, 07:57 AM
It worked, thanks for the tip! :)