# HG changeset patch
# User Sam <sam@basx.dev>
# Date 1685794938 -25200
# Node ID f91f54c8d86c301ae0fd6c0d3ba004b9723fc3c8
# Parent  8813032e083f0f7159a42ab7d9ef7d3004c91c4d
fix: bad/unclear name

diff -r 8813032e083f -r f91f54c8d86c 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]()