|  | 
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
| 
				
				problems nagivating around
			 
			
			hi..im very new to vizard and i just want to simply nagivate around a building.ive managed move forward and backwards..but having problems moving right and left by keyboard. heres the code that im using..could anyone tel me if the code is right or am i missing something out.i'd appreciate the help..thanks... import viz viz.go() myView myView = viz.get(viz.MAIN_VIEWPOINT) def moveTimer(num): if viz.iskeydown('a'): myView.move (0,0,1) if viz.iskeydown('z'): myView.move (0,0,-1) viz.callback(viz.TIMER_EVENT,moveTimer) viz.starttimer(1,0.05,viz.FOREVER) TURN = 25 def mytimer(): if viz.iskeydown(viz.KEY_RIGHT): view.rotate(0,1,0,TURN*viz.elapsed(),viz.BODY_ORI, viz.REL_PARENT) if viz.iskeydown(viz.KEY_LEFT): view.rotate(0,1,0,-TURN*viz.elapsed(),viz.BODY_ORI,viz.REL_PARENT) vizact.ontimer(0,0,1, mytimer) | 
| 
 | 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Problems creating a mirror | Josh | Vizard | 2 | 01-28-2010 12:21 PM | 
| Problems loading WRL file | DrunkenBrit | Vizard | 2 | 01-29-2009 12:58 AM | 
| 2 problems with our HMD | Vbents | Precision Position Tracker (PPT) | 1 | 07-26-2006 07:55 PM | 
| Viz PPT 1 problems | Adam | Precision Position Tracker (PPT) | 3 | 08-30-2005 10:51 AM | 
| Problems with lighting in 2.0 | murm | Vizard | 6 | 04-21-2004 09:59 AM |