WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Changing pivot center midway through animation (https://forum.worldviz.com/showthread.php?t=2305)

vijaykiran 10-07-2009 07:56 AM

Changing pivot center midway through animation
 
Hello,

Is it possible to change the pivot center of an object midway through an action sequence?

For example, I would like an object to have a turn radius of 30 for a spin action. The object then moves forward for a bit and then takes another spin action only this time it should have a turn radius of 15.

How can this be possible?

Thanks,
Vijay.

Jeff 10-08-2009 08:30 PM

You could create you own custom action. The docs have some information about how to do this.

http://www.worldviz.com/vizhelp/VizH...wn_actions.htm

Your custom action could take as an argument the new center point of the object. In the action code first you will need to get the position of the object using the viz.ABS_GLOBAL flag. Then you will set the center of the object using the value passed in. Then you reset the position to where it originally was, again using the viz.ABS_GLOBAL flag.

vijaykiran 10-19-2009 10:10 AM

Thanks Jeff. That worked.

- Vijay.


All times are GMT -7. The time now is 01:06 AM.

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