Exemplo n.º 1
0
 public bool WillIntersect(Hitbox other)
 {
     return((FutureRight > other.Left && FutureLeft < other.Right) && (FutureDown > other.Up && FutureUp < other.Down));
 }
Exemplo n.º 2
0
 public bool Intersects(Hitbox other)
 {
     return((Right > other.Left && Left < other.Right) && (Down > other.Up && Up < other.Down));
 }