PDA

View Full Version : "walkTo"


Veronika
02-09-2010, 11:52 PM
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?


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

IGoudt
02-10-2010, 08:50 AM
The walkTo function takes an array as argument. [x,y,z]
The walkto function takes x,y,z as argument
(mind the 't' and 'T')

Also don't forget to import vizact. :)

Veronika
02-10-2010, 11:32 PM
Already. it works.

Thank you very much :)