Esempio n. 1
0
        public static bool Colide(AbstractColidable objA, AbstractColidable objB)
        {
            if ((objA.Position.X + objA.Width) < objB.Position.X)
            {
                return(false);
            }
            if (objA.Position.X > (objB.Position.X + objB.Width))
            {
                return(false);
            }
            if ((objA.Position.Y + objA.Heigth) < objB.Position.Y)
            {
                return(false);
            }
            if (objA.Position.Y > (objB.Position.Y + objB.Heigth))
            {
                return(false);
            }

            return(true);
        }
Esempio n. 2
0
 public static bool Colide(ICircleColidable objA, AbstractColidable objB)
 {
     throw new Exception("Ainda tem que implementar");
 }
Esempio n. 3
0
 public virtual bool Colide(AbstractColidable objOp)
 {
     return(UtilPhisics.Colide(this, objOp));
 }