WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-21-2008, 11:50 AM
Enlil Enlil is offline
Member
 
Join Date: May 2008
Posts: 61
Problems with interaction of vizact.turn and animation path

Hello, I am writing a script to control avatars, and am attempting to use animation paths to control them. Generally, this works fine, but if I try to rotate first using an Avatar.add(vizact.turn(foo)), then start the path once I have reached the target angle, I get very strange behavior - a model with a specific head had the head follow a different path from the body, and it sometimes resulted in following the path in the wrong order.

So, a few queries -
First, is there a command to tell when an avatar's action pool is empty? Since I think the problem is the vizact.turn is still at the tail end when the path starts, if I could query what wizard thought, rather that checking the avatars angle, it would probably fix the problem.

Secondly, I found some references to an improved walkto command with the option to not turn off the walk animation, and that accepted lists, that was supposed to be in the next release - has this version made it yet?

Relatedly, is there a command to tell when a path is done?

Thanks,
Christian
Reply With Quote
  #2  
Old 11-24-2008, 03:07 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,455
You can tell when a pool is empty by the viz.ACTION_EMPTY_EVENT or you could listen for the viz.ACTION_END_EVENT to see if a particular action has ended.

There is no animation callback event. You could manually set up a timer to expire when the animation path is done.

The current version does not accept a list for the vizact.walkTo command. Farshizzo, are there any plans for this?
Reply With Quote
  #3  
Old 11-24-2008, 03:53 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Quote:
Originally Posted by Jeff View Post
The current version does not accept a list for the vizact.walkTo command. Farshizzo, are there any plans for this?
Are you sure about this? The current version of the vizact.walkTo command should ONLY accept lists for the position argument.
Reply With Quote
  #4  
Old 11-24-2008, 04:23 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,455
sorry, I was thinking the original question was asking about passing in a list of points to the walkTo command
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
speed on animation path whj Vizard 8 11-17-2008 07:41 PM
real time collision on animation path whj Vizard 10 10-06-2008 04:38 PM
Animation Path djdesmangles Vizard 2 06-11-2007 03:37 PM
Animation Path djdesmangles Vizard 0 06-06-2007 11:03 AM
avatar animation problems jrodman Vizard 1 01-18-2006 09:12 AM


All times are GMT -7. The time now is 08:15 AM.


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