Exemple #1
0
 public override void SetEnclosureNode(PCZSceneNode node)
 {
     mEnclosureNode = node;
     if (null != node)
     {
         // anchor the node to this zone
         node.AnchorToHomeZone(this);
         // make sure node world bounds are up to date
         //node._updateBounds();
         // resize the octree to the same size as the enclosure node bounding box
         Resize(node.WorldAABB);
     }
 }
Exemple #2
0
        /** Set the enclosure node for this TerrainZone
         */

        public override void SetEnclosureNode(PCZSceneNode node)
        {
            mEnclosureNode = node;
            if (null != node)
            {
                // anchor the node to this zone
                node.AnchorToHomeZone(this);
                // make sure node world bounds are up to date
                //node._updateBounds();
                // DON'T resize the octree to the same size as the enclosure node bounding box
                // resize(node->_getWorldAABB());
                // EXPERIMENTAL - prevent terrain zone enclosure node from visiting other zones
                node.AllowToVisit = false;
            }
        }