Thread: "walkTo"
View Single Post
  #1  
Old 02-09-2010, 11:52 PM
Veronika Veronika is offline
Member
 
Join Date: Jan 2010
Posts: 22
"walkTo"

Hi,

I want my avatar goes to the point, which I locate. I try it with the command "walkTo" but it does not work.
Can somebody help me? How I send avatar to set point and then to the next point?

Code:
import viz

viz.MainView.setPosition([-20,3,-20])

ground=viz.add('tut_ground.wrl')

avatar=viz.add('male.cfg')
avatar.setPosition([-20,0,-10])
avatar.setEuler([60,0,0])
avatar.state(2)

walk = vizact.walkTo(-19,0,-9)
avatar.addAction(walk)

viz.go()
Thanks
Reply With Quote