March 2017
Intermediate to advanced
480 pages
11h 3m
English
An Oriented Bounding Box (OBB), is the 3D equivalent of the 2D oriented rectangle. An OBB is defined by a position, half-extents, and some orientation. There are several ways to store the orientation for a bounding box. One way would be to store a vector which has each component corresponding to the angle of rotation on an axis. A better way is to treat the orientation as a 3D matrix, using the mat3 struct:

We are going to create a new structure to represent an Oriented Bounding Box. This new OBB structure is going to be composed of a position, half extents, and some orientation. The position and size will be represented ...
Read now
Unlock full access