![]() |
|
|
|
#1
|
|||
|
|||
|
I see. Is there any way to re-attach the cube to the scene graph after the unparenting? The reason I wonder is that I still need to have the cube as child of the sphere because alot of transformations are done on the sphere node. Adding another level of hierarchy above the sphere will force me to rewrite quite many parts so I was kind of hoping to avoid that.
Perhaps I could give it a new parent instead of unparenting, maybe assign it to a group node at the times the sphere is invisible and re-assign it back to the sphere when the cube is invisible. I'm going to try this out. edit:no of course that wouldn't work, the cubes would just move to the group nodes position when they are assigned as childs. Guess I'm stuck with having to do some rewriting then. Last edited by moooh; 12-19-2008 at 01:42 AM. |
|
#2
|
|||
|
|||
|
You can reparent the cube to any part of the scene graph. For example, if you wanted to reparent the cube to root of the scene, then instead of calling cube.unparent() you would call the following:
Code:
cube.parent(viz.WORLD) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| export problem | bazelaisr | Vizard | 2 | 05-28-2008 10:19 AM |
| 5DT Data Glove 5 Ultra Problem | bjgold | Vizard | 1 | 08-08-2006 04:08 PM |
| problem with female animations | vmonkey | Vizard | 1 | 10-07-2005 10:36 AM |
| sound problem | alaa | Vizard | 7 | 09-02-2005 01:13 PM |
| PROBLEM: Picture-in-Picture breaks textures?!? | vcarlson | Vizard | 4 | 10-05-2004 04:22 PM |