rearranging
continuous-integration/drone/push Build is passing Details

main
Evan Hemsley 2020-07-18 13:18:51 -07:00
parent 52f78c5351
commit 23b6eb51ee
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@ weight: 30
*SweepTest* is a static class containing methods for performing sweep testing.
## Methods
##### **public static SweepResult<T> Test<T>(SpatialHash<T> spatialHash, Rectangle rectangle, Transform2D transform, Vector2 ray) where T : IEquatable<T>**
Efficiently performs a sweep test on and against rectangles. Returns the position 1 pixel before overlap occurs. Useful for things like platforming collision.

View File

@ -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.