From 23b6eb51ee4db07fa2dc1612187c99eeff4e2b77 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Sat, 18 Jul 2020 13:18:51 -0700 Subject: [PATCH] rearranging --- content/api/SweepTest.md | 2 ++ content/narrow_phase/SweepTest.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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.