![]() |
|
#2
|
|||
|
|||
|
When specifying the position to walk to, you can use a node as the Y value of the position. This will cause the walkTo action to set the height of the avatar to the height of the terrain. Here is an example:
Code:
import viz
viz.go()
#Add terrain model
terrain = viz.add('tut_ground.wrl',euler=(0,-10,0))
#Create walk action that follows terrain height
walkAction = vizact.walkTo([0,terrain,10])
#Add action to avatar
avatar = viz.add('vcc_female.cfg')
avatar.addAction(walkAction)
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make avatar's eyes to blink when speaking | michelcm3 | Vizard | 12 | 01-15-2008 09:48 AM |
| avatars | dig | Vizard | 4 | 09-20-2007 04:29 PM |
| Avatars in an array and link/unlink | betancourtb82 | Vizard | 7 | 09-05-2006 05:06 PM |
| Walking avatars --> collision detection? | sjroorda | Vizard | 3 | 10-13-2005 05:47 AM |