diff --git a/content/api/SweepTest.md b/content/api/SweepTest.md index 56cee5a..c78373c 100644 --- a/content/api/SweepTest.md +++ b/content/api/SweepTest.md @@ -6,6 +6,8 @@ weight: 30 *SweepTest* is a static class containing methods for performing sweep testing. +## Methods + ##### **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. diff --git a/content/narrow_phase/SweepTest.md b/content/narrow_phase/SweepTest.md index fbfd34d..8bf855f 100644 --- a/content/narrow_phase/SweepTest.md +++ b/content/narrow_phase/SweepTest.md @@ -1,7 +1,7 @@ --- title: "Sweep Test" date: 2020-07-18T12:37:29-07:00 -weight: 15 +weight: 25 --- Sweep testing is an efficient way to check collision positions on moving objects.