| 
		
	
		
		
			
			 
				
				motion in vzard
			 
			 
			
		
		
		
			
			Dear all  
 
Good Morning , I have created  a 40 people and i gave the walk action but all people are not moving only 4 people are moving . The code has given below and can anyone please help me how can i rectify this problem 
p =  [5.1,5.3,5.5,5.7,5.9, 4.1,4.3,4.5,4.7,4.9 ] 
p1 = [ 4, 4.2,4.4,4.6,4.8,5,5.2,5.4,5.6,5.8,6] 
for i in p: 
    male = viz.addAvatar('vcc_male.cfg') 
    male.setPosition([i, 0, -1]) 
    male.setEuler([0,0,0]) 
    male.state(18) 
 
for j in p1: 
    female = viz.addAvatar('vcc_female.cfg') 
    female.setPosition([j,0,-1.3]) 
    female.setEuler([0,0,0]) 
    female.state(18) 
for i in p: 
    male1 = viz.addAvatar('vcc_male2.cfg') 
    male1.setPosition([i, 0, -1.6]) 
    male1.setEuler([0,0,0]) 
    male1.state(19) 
for j in p1: 
    female1 = viz.addAvatar('vcc_female.cfg') 
    female1.setPosition([j,0,-1.9]) 
    female1.setEuler([0,0,0]) 
    female1.state(20) 
 
##addng the walking action to the pedestrains  
 
def walkAvatars(): 
    walk1 = vizact.walkTo([3, 0,11]) 
    vizact.ontimer2(10,0,male2.addAction,walk1) 
    vizact.ontimer2(5,0,female1.addAction,walk1) 
    walk2 = vizact.walkTo([6.9,0,11]) 
     
    male.addAction(walk1) 
    male1.addAction(walk2) 
    female1.addAction(walk1) 
    female.addAction(walk2) 
 
 
vizact.onkeydown('m',walkAvatars)
		 
		
		
		
		
		
		
		
		
			
			
			
			
				 
			
			
			
			
			
			
			
				
			
			
			
		 
	
	 |