PDA

View Full Version : Changing pivot center midway through animation


vijaykiran
10-07-2009, 07:56 AM
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/VizHelp.htm#Creating_your_own_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.