avatar.walkto ignores y coordinate.
When I use avatar.walkto to walk to a position, it ignores the y coordinate and just uses 0. Here's the relevant part of the code:
avatar = viz.add( 'female.cfg' )
avatar.translate( (1, -0.5, 1) )
avatar.rotate( 90, 0, 0 )
avatar.scale( 0.5, 0.5, 0.5 )
...
walk = avatar.walkto( 3, -0.5, 3, 0.85, 0, viz.AVATAR_WALKSTEP )
avatar.clear(viz.ACTION)
avatar.clear(viz.CURRENT_ACTION)
avatar.act(walk)
The translation works fine, but when it starts the walk, it jumps up to 0.
I'm using Vizard 2.50b.
|