WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   stopping a goto() (https://forum.worldviz.com/showthread.php?t=488)

vsully 01-24-2006 12:27 AM

stopping a goto()
 
Hi,

How can a stop a goto() action from completing? I have a node3d which I've began a goto() command, but now I want to interrupt it before destination. .clear(all/current_action) doesn't seem to work.

Thanks

farshizzo 01-24-2006 01:43 PM

Hi,

The built-in animations of nodes will be deprecated in future versions of Vizard. Use the vizact library instead. Here is how you would create the goto action:
Code:

node.add(vizact.goto(x,y,z,speed))
To stop the action you would do the following:
Code:

node.clear(viz.CURRENT_ACTION)


All times are GMT -7. The time now is 11:43 AM.

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