WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 10-07-2009, 08:56 AM
vijaykiran vijaykiran is offline
Join Date: Sep 2009
Posts: 13
Changing pivot center midway through animation


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?

Reply With Quote
Old 10-08-2009, 09:30 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,465
You could create you own custom action. The docs have some information about how to do this.

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.
Reply With Quote
Old 10-19-2009, 11:10 AM
vijaykiran vijaykiran is offline
Join Date: Sep 2009
Posts: 13
Thanks Jeff. That worked.

- Vijay.
Reply With Quote

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
Positioning objects: center johannes2 Vizard 2 02-12-2008 03:56 AM
Animation Tracks.... k_iwan Vizard 2 03-26-2007 06:52 PM

All times are GMT -7. The time now is 01:21 PM.

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