Ejemplo n.º 1
0
        public List <List <IntPoint> > GetDefBubblesPolys()
        {
            List <List <IntPoint> > allPolys = new List <List <IntPoint> >();

            foreach (var service in _engineState.BubbleManagerEngine.ListOfServices)
            {
                allPolys.Add(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter,
                                                                                   service.Width));
            }
            return(allPolys);
        }
Ejemplo n.º 2
0
        public List <List <IntPoint> > GetDefRocketsPolys()
        {
            List <List <IntPoint> > allPolys = new List <List <IntPoint> >();

            foreach (var service in _engineState.RocketsCarrierManagerEngine.GetListOfServices())
            {
                allPolys.Add(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter2D,
                                                                                   service.Width));
            }
            return(allPolys);
        }
Ejemplo n.º 3
0
        public List <List <IntPoint> > GetDefBumpersPolys()
        {
            List <List <IntPoint> > allPolys = new List <List <IntPoint> >();
            List <BumpRigid>        bumpers  = _engineState.RigidsManagerEngine.
                                               ListOfBoxRigids.Where(item => item is BumpRigid).Cast <BumpRigid>()
                                               .ToList();

            foreach (var service in bumpers)
            {
                allPolys.Add(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter2D,
                                                                                   service.Width));
            }
            return(allPolys);
        }
Ejemplo n.º 4
0
 public List <IntPoint> GetDefBumperPoly(BumpRigid bump)
 {
     return(DefinitiveCompPolyHandler.GetDefComponentIntersection(bump.PositionXNACenter2D,
                                                                  bump.Width));
 }
Ejemplo n.º 5
0
 public List <IntPoint> GetDefBubblePoly(BubbleService service)
 {
     return(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter,
                                                                  service.Width));
 }
Ejemplo n.º 6
0
 public List <IntPoint> GetDefRocketPoly(RocketCarrierService service)
 {
     return(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter2D,
                                                                  service.Width));
 }