intersectBox

fun intersectBox(box: Box3, target: Vector3): Vector3?

Intersects this ray with the bounding box box, writing the intersection point into target.

Return

target on a hit, or null if there is no intersection.