Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio n. 4
0
 public List <IntPoint> GetDefBumperPoly(BumpRigid bump)
 {
     return(DefinitiveCompPolyHandler.GetDefComponentIntersection(bump.PositionXNACenter2D,
                                                                  bump.Width));
 }
Esempio n. 5
0
 public List <IntPoint> GetDefBubblePoly(BubbleService service)
 {
     return(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter,
                                                                  service.Width));
 }
Esempio n. 6
0
 public List <IntPoint> GetDefRocketPoly(RocketCarrierService service)
 {
     return(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter2D,
                                                                  service.Width));
 }