WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-21-2014, 01:45 PM
The SundanceKid The SundanceKid is offline
Member
 
Join Date: May 2014
Posts: 4
Changing parent without changing absolute global position?

Hi,

I'm trying to set an object's parent without changing its global absolute position.

Whenever I set the object's parent, its position resets to [0, 0, 0] on its parent's relative coordinate system (its position becomes the same as its parents position).

How do I get around this? I have tried many things, such as finding the object's position on the absolute global coordinate system, setting the object's parent, and then setting the object's position back to the one I found earlier. This doesn't seem to work.

Another seemingly easy way to do this would be to find the object's position relative to its soon-to-be parent's position, but I can't do this because they are not in the same hierarchy—I have to subtract both positions on the absolute global coordinate system. Then, of course, I set the object's parent and move it back to the correct position that I just went through the work of finding.

All of these ways don't work.

How do I set and object's parent without changing it's global position?

Last edited by The SundanceKid; 05-21-2014 at 01:53 PM.
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


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


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