--- title: "SweepTest" date: 2020-07-18T13:07:01-07:00 weight: 30 --- *SweepTest* is a static class containing methods for performing sweep testing. ##### **public static SweepResult Test(SpatialHash spatialHash, Rectangle rectangle, Transform2D transform, Vector2 ray) where T : IEquatable** Efficiently performs a sweep test on and against rectangles. Returns the position 1 pixel before overlap occurs. Useful for things like platforming collision.