Пример #1
0
 public bool WillIntersect(Hitbox other)
 {
     return((FutureRight > other.Left && FutureLeft < other.Right) && (FutureDown > other.Up && FutureUp < other.Down));
 }
Пример #2
0
 public bool Intersects(Hitbox other)
 {
     return((Right > other.Left && Left < other.Right) && (Down > other.Up && Up < other.Down));
 }