WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2  
Old 02-10-2010, 08:50 AM
IGoudt IGoudt is offline
Member
 
Join Date: Sep 2009
Posts: 20
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.
Reply With Quote
  #3  
Old 02-10-2010, 11:32 PM
Veronika Veronika is offline
Member
 
Join Date: Jan 2010
Posts: 22
Already. it works.

Thank you very much
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:38 AM.


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