WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   "walkTo" (https://forum.worldviz.com/showthread.php?t=2514)

Veronika 02-09-2010 11:52 PM

"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

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 :)


All times are GMT -7. The time now is 12:02 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC