Esempio n. 1
0
        internal override bool GetCollisionPolygon(CollisionPolygon obj)
        {
            obj.Apply();
            Apply();
            if (!outCircle.GetCollision(obj.outCircle)) return false;
            if (inCircle.GetCollision(obj.inCircle)) return true;

            if (GetCollisionPoint(new CollisionPoint(obj.Position))) return true;
            if (obj.GetCollisionPoint(new CollisionPoint(Position))) return true;
            for (int i = 0; i < temp.Length; i++)
            {
                for (int j = 0; j < obj.temp.Length; j++)
                {
                    if (Line(i).GetCollision(obj.Line(j))) return true;
                }
            }
            return false;
        }
Esempio n. 2
0
 internal override bool GetCollisionPolygon(CollisionPolygon obj)
 {
     return obj.GetCollision(this);
 }
Esempio n. 3
0
 internal abstract bool GetCollisionPolygon(CollisionPolygon obj);