From a998e4dd67f4e972ab8a5cf8400880765e30fabd Mon Sep 17 00:00:00 2001 From: Octopus Octopus Date: Thu, 30 Jun 2022 16:46:57 -0500 Subject: [PATCH] fix a silly little error :3 --- fightstick/misc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fightstick/misc.go b/fightstick/misc.go index 451c3a6..ca1862c 100644 --- a/fightstick/misc.go +++ b/fightstick/misc.go @@ -36,14 +36,14 @@ func trapezoid(base v2.Vec, xChange float64) sdf.SDF2 { } // split2DPlane splits a 2D plane in half. 0 is right side and 1 is left side. -func split2DPlane(plane sdf.SDF2, height float64) []sdf.SDF2 { +func split2DPlane(plane sdf.SDF2) []sdf.SDF2 { planes := make([]sdf.SDF2, 2) rPlane := sdf.Cut2D(plane, v2.Vec{X: 0, Y: 0}, v2.Vec{X: 0, Y: 1}) planes[0] = rPlane lPlane := sdf.Transform2D(sdf.Cut2D(sdf.Transform2D(plane, sdf.MirrorY()), v2.Vec{X: 0, Y: 0}, v2.Vec{X: 0, Y: 1}), sdf.MirrorY()) - planes[0] = lPlane + planes[1] = lPlane return planes }