I have this code:
	Quote:
	
	
		
			
				import viz 
 
viz.go() 
 
#set main view (x,z,y) 
viz.MainView.translate(0,2,-15) 
viz.clearcolor(viz.GRAY)  
 
#Connect to Patriot sensor 
polhemus = viz.add('polhemus.dle') 
patriot = polhemus.addPatriot() 
 
 
avatar=viz.add('male.cfg') 
 
#Link the hand to the Patriot data 
viz.link(patriot,avatar) 
 
def updateavatar(): 
	pos=patriot.getPosition() 
	ori=patriot.getEuler() 
	avatar.setPosition([pos[0],0,pos[0]]) 
	avatar.setEuler([ori[0],0,0]) 
	 
vizact.onupdate(0,updateavatar)
			
		 | 
	
	
 and I want to walk with avatar and if sensor is further from calibration place, the speed of walking is more. But this code for update avatar isn't function. I whole day try to set this, but I don't know how. Can you help me with this?