Skip to Main Content
3D Game Engine Design, 2nd Edition
book

3D Game Engine Design, 2nd Edition

by David Eberly
November 2006
Intermediate to advanced content levelIntermediate to advanced
1040 pages
26h 31m
English
CRC Press
Content preview from 3D Game Engine Design, 2nd Edition
15.3 Linear Component and Oriented Box 691
rhs = box.e[0] * AWdU[1] + box.e[1] * AWdU[0];
if (AWxDdU[2] > rhs)
{
return false;
}
return true;
}
Segments and OBBs
The semi-infinite convex polyhedron that corresponds to the Minkowski difference of
a ray and an OBB becomes a finite object in the case of a segment and an OBB. Figure
15.4 illustrates in two dimensions. The infinite convex polyhedron has the same three
pairs of parallel faces as for the ray and line, but the polyhedron has the OBB as an
end cap on both ends of the segment. The OBB contributes three additional faces and
corresponding normal vectors, a total of six potential separating axes. The separation
tests are
|U
0
.
D ×
| >e
1
|D
.
U
2
|+e
2
|D
.
U
1
|
|U
1
.
D ×
| >e
0
|D
.
U
2
|+e
2
|D
.
U
0
|
|U
2
.
D ×
| >e
0
|D
.
U
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

3D Game Engine Architecture

3D Game Engine Architecture

David Eberly
Blender 3D By Example - Second Edition

Blender 3D By Example - Second Edition

Oscar Baechler, Xury Greer
Computer Graphics

Computer Graphics

Alexey Boreskov, Evgeniy Shikin

Publisher Resources

ISBN: 9781482267303