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.