This commit is contained in:
Quaternions 2025-02-06 13:43:31 -08:00
parent a77b2fd78f
commit 5b710b531e

@ -25,6 +25,7 @@ impl Ray{
// t == (n.p - n.o)/n.d
// divide by 0 might be bad
// this is all wrong because it just does the planes
todo!();
[
(aabb.min().x-self.origin.x)/self.direction.x,
(aabb.min().y-self.origin.y)/self.direction.y,