public bool Collides(Vector2 center, float ray) { bool collision = false; Vector2 dist = position.Sub(center); if (dist.GetLength() <= width / 2 + ray) { if (PixelCollides(center, ray)) { collision = true; PixelCollides(center, 15, true); } } return(collision); }
public bool Collides(Vector2 center, float ray) { Vector2 dist = Position.Sub(center); return(dist.GetLength() <= width / 2 + ray); }