WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-07-2009, 07:56 AM
vijaykiran vijaykiran is offline
Member
 
Join Date: Sep 2009
Posts: 13
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.
Reply With Quote
  #2  
Old 10-08-2009, 08:30 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
Reply With Quote
  #3  
Old 10-19-2009, 10:10 AM
vijaykiran vijaykiran is offline
Member
 
Join Date: Sep 2009
Posts: 13
Thanks Jeff. That worked.

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


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


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