Beispiel #1
0
        public void UpdateAABB()
        {
            var startPos = Grids.First().PositionComp.GetPosition();
            var box      = new BoundingBoxD(startPos, startPos);

            foreach (var aabb in Grids.Select(g => g.PositionComp.WorldAABB))
            {
                box.Include(aabb);
            }

            WorldAABB = box;
        }
Beispiel #2
0
 public ConcealGroup(MyGroups <MyCubeGrid, MyGridPhysicalGroupData> .Group group)
 {
     Grids = group.Nodes.Select(n => n.NodeData).ToList();
     Id    = Grids.First().EntityId;
 }