PDA

View Full Version : avatar.walkto ignores y coordinate.


jrodman
11-08-2005, 04:27 PM
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.

farshizzo
11-08-2005, 04:39 PM
Hi,

Looks like you found a bug. To work around it, try using a non-zero value for the rotation speed:avatar.walkto( 3, -0.5, 3, 0.85, 90, viz.AVATAR_WALKSTEP )