WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 11-02-2003, 08:02 PM
jaytee jaytee is offline
Join Date: Oct 2003
Posts: 7
Changing the viewpoint angle

The world I'm creating needs to use the arrow keys to control the view. I am starting with the arrow key control from the gallery example:

#Go Forward or Backward
if viz.iskeydown(viz.KEY_UP):
elif viz.iskeydown(viz.KEY_DOWN):
#Turn Left or Right
if viz.iskeydown(viz.KEY_LEFT):
elif viz.iskeydown(viz.KEY_RIGHT):
How would I modify this so that the up and down arrows instead control the view pitch? (not sure if that's the correct terminology... I want to change how high or low the user is looking).

Thanks so much for your help... sorry for all these newbie questions.
Reply With Quote
Old 11-03-2003, 10:34 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
the 3 arguments to the viz.rotate command is yaw, pitch, and roll. So just make ROTATION_INC the second argument instead of the first.
#Turn Up or Down
if viz.iskeydown(viz.KEY_UP):
elif viz.iskeydown(viz.KEY_DOWN):
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 05:55 AM.

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