#1
|
|||
|
|||
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:
Code:
#Go Forward or Backward if viz.iskeydown(viz.KEY_UP): viz.move(0,0,TRANSLATE_INC) elif viz.iskeydown(viz.KEY_DOWN): viz.move(0,0,-TRANSLATE_INC) #Turn Left or Right if viz.iskeydown(viz.KEY_LEFT): viz.rotate(viz.BODY_ORI,-ROTATION_INC,0,0) elif viz.iskeydown(viz.KEY_RIGHT): viz.rotate(viz.BODY_ORI,ROTATION_INC,0,0) Thanks so much for your help... sorry for all these newbie questions. |
|
|