# HG changeset patch # User Sam # Date 1685794938 -25200 # Node ID ebe4ac41e1cf6435c70f6ca68ae3ce2f68cffb53 # Parent 913b831465a0ffdb2f76bd314946ac4ca3b7fa02 fix: bad/unclear name diff -r 913b831465a0 -r ebe4ac41e1cf src/semicongine/collision.nim --- a/src/semicongine/collision.nim Sat Jun 03 16:58:32 2023 +0700 +++ b/src/semicongine/collision.nim Sat Jun 03 19:22:18 2023 +0700 @@ -1,5 +1,3 @@ -import std/random - import ./core import ./scene @@ -11,7 +9,6 @@ HitSphere* = ref object of Component radius*: float32 - func between(value, b1, b2: float32): bool = min(b1, b2) <= value and value <= max(b1, b2) @@ -155,7 +152,7 @@ of 4: simplex.tetrahedron(direction) else: raise newException(Exception, "Error in simplex") -func overlaps*[A, B](a: A, b: B): bool = +func intersects*[A, B](a: A, b: B): bool = var support = supportPoint(a, b, newVec3f(0.8153, -0.4239, 0.5786)) # just random initial vector simplex = newSeq[Vec3f]()