WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   avatar.walkto ignores y coordinate. (https://forum.worldviz.com/showthread.php?t=451)

jrodman 11-08-2005 04:27 PM

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.

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

avatar.walkto( 3, -0.5, 3, 0.85, 90, viz.AVATAR_WALKSTEP )


All times are GMT -7. The time now is 05:06 PM.

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