Skip to content

Commit

Permalink
Fix: ignore children in AABB intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
smlpt committed Sep 17, 2024
1 parent 1d77ea3 commit 34b76f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ class EyeTrackingDemo: Command{
spine.spatial().orientBetweenPoints(p1, p2, true, true)
spine.visible = true

val intersection = volume.spatial().intersectAABB(p1, (p2 - p1).normalize())
val intersection = volume.spatial().intersectAABB(p1, (p2 - p1).normalize(), true)
if(intersection is MaybeIntersects.Intersection) {
// get local entry and exit coordinates, and convert to UV coords
val localEntry = (intersection.relativeEntry) //.add(Vector3f(1.0f)) ) .mul (1.0f / 2.0f)
Expand Down

0 comments on commit 34b76f8

Please sign in to comment.