March 2017
Intermediate to advanced
480 pages
11h 3m
English
We can extend the same slab method used for raycasting against an AABB to also work with an OBB. The key difference is how we find the values of
and
.
We are going to implement a function that finds the entry and exit points of a Raycast against an OBB. This function will only return the entry point. The function returns a scalar value t. This scalar value is the time along the ray at which the intersection happened. If the intersection is invalid, a negative number is returned.
Follow these steps ...
Read now
Unlock full access