View Single Post
  #3  
Old 04-27-2008, 08:42 PM
k_iwan k_iwan is offline
Member
 
Join Date: May 2006
Posts: 115
Unhappy It's not working...?

I pasted my code here. The guy is supposedly running around making a big circle, but he only stretches his arms while sliding around.

Code:
import viz
import math

iwan = []
for i in range(20):
	n = [math.sin(i)*1, 0, math.cos(i)+1]
	iwan.append(n)
	
print iwan

male = viz.add('male.cfg')
male.idlepose(12) #Use animation 12 as the idle pose

for each in iwan:
	print "male.act(vizact.walkto(",each,"))"
	male.addAction(vizact.walkto(each, 1.5, 90, 2)) # 2=walking anim
	
if __name__ == "__main__":
	viz.go()
Could someone tell me where the mistakes that I made in my script?
Thank you very much.
Reply With Quote