Mercurial > games > semicongine
changeset 742:f91f54c8d86c
fix: bad/unclear name
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 03 Jun 2023 19:22:18 +0700 |
parents | 8813032e083f |
children | c0f8ef9594cc |
files | src/semicongine/collision.nim |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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]()