summaryrefslogtreecommitdiff
path: root/public/assets/test/intersect3.html
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/test/intersect3.html')
-rw-r--r--public/assets/test/intersect3.html10
1 files changed, 2 insertions, 8 deletions
diff --git a/public/assets/test/intersect3.html b/public/assets/test/intersect3.html
index e897e8a..1e2a1a4 100644
--- a/public/assets/test/intersect3.html
+++ b/public/assets/test/intersect3.html
@@ -167,12 +167,12 @@ function draw () {
}
drawPoint(intersect)
- if (actually_intersects && intersecting_face && t < min_t) {
+ if (actually_intersects && t < min_t) {
min_t = t
hud.innerHTML += t + "<br>"
var clone = intersect.clone()
clone.t = t
- closest_face = intersecting_face
+ closest_intersect = intersecting_face
closest_intersect = clone
}
})
@@ -185,12 +185,6 @@ function draw () {
ctx.fillStyle = "#00f"
drawPoint(closest_intersect)
drawLine(cursor.x, closest_intersect, "#00f")
- // closest_face.vec
-
- // get the closest intersect, i.e. the one with smallest t value
- // get the angle of the cursor
- // move the desired position to pos - 20px
-
}
}
function drawLine (pa, pb, color, headless) {