WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-08-2005, 04:27 PM
jrodman jrodman is offline
Member
 
Join Date: Jun 2003
Posts: 21
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.
Reply With Quote
  #2  
Old 11-08-2005, 04:39 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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 )
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 05:01 AM.


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