So I've realized I can get better behavior by creating and destroying objects as needed rather than hiding them outside of the layout. But when I create an object everything attached to that object via a container appears on top of a single point. I would like to preserve the positional relationship. I have the objects in the container pinned to the parent (and this is performed at layout start) but this doesn't seem to help.
How do I make sure the my tank has the barrel in the proper position when I create a new one rather than the barrel appearing on top of the tank?