![]() |
#1
|
|||
|
|||
BoundingBox() question
Hi,
I noticed that when some object has one or more children, this function always returns bounding box that contains parent and all its children. So, my questions is, what should I do if I want to get only parent's bounding box and (this is important) I want to get if _after_ I attach some child to it ? Thank you. |
#2
|
|||
|
|||
You can use the optional node parameter of the getBoundingBox function to specify the specific subgraph that you want to compute the bounding box of. This will work as long as the child nodes don't have a subgraph with the same name. Another workaround would be to temporarily detach the children from the parent while computing the bounding box, then reattaching them using the node.unparent/parent commands.
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
General question and question regarding arrays | dan12345 | Vizard | 1 | 01-15-2008 10:15 AM |
Stereo Overlap question | JMOwens | Vizard | 2 | 01-08-2008 08:54 AM |
question about yaw, pitch, roll | TunTun | Vizard | 2 | 05-23-2007 12:46 PM |
to rephrase my question... | shai | Vizard | 2 | 10-27-2004 10:55 AM |
Lots of Question | Karthi | Vizard | 4 | 02-20-2004 06:42 PM |