// Create a world object public WorldObject() { WorldHitbox = new Hitbox(); }
// Returns if two hitboxes have collided // <h> is the other hitbox // <thisPos> is the position of the current hitbox // <hPos> is the position of the other hitbox public bool Intersects(Hitbox h, Vector2 thisPos, Vector2 hPos) { return(IntersectsSide(h, thisPos, hPos).Any); }