Пример #1
0
 internal override bool GetCollisionPoint(CollisionPoint obj)
 {
     return (obj.Position == Position);
 }
Пример #2
0
 internal override bool GetCollisionPoint(CollisionPoint obj)
 {
     Apply();
     if (!outCircle.GetCollision(obj)) return false;
     if (inCircle.GetCollision(obj)) return true;
     bool neg;
     neg = MathUtilXNA.Cross(Side(0), obj.Position - temp[0]) < 0;
     for (int i = 1; i < temp.Length; i++)
     {
         if (neg != (MathUtilXNA.Cross(Side(i), obj.Position - temp[i]) < 0)) return false;
     }
     return true;
 }
Пример #3
0
 internal override bool GetCollisionPoint(CollisionPoint obj)
 {
     return (Position - obj.Position).LengthSquared() <= Pow2(radius);
 }
Пример #4
0
 internal abstract bool GetCollisionPoint(CollisionPoint obj);
Пример #5
0
 internal override bool GetCollisionPoint(CollisionPoint obj)
 {
     return false;
 }
Пример #6
0
 internal override bool GetCollisionPoint(CollisionPoint obj)
 {
     return obj.Position.X > Left && obj.Position.X < Right && obj.Position.Y < Top && obj.Position.Y > Bottom;
 }