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
8.1 The Method of Separating Axes 429
generated by a ver tex, an edge, or a face. Similar to the implementation for the 2D
problem, a projection information class can be defined.
class ProjInfo
{
public:
double min, max; // projection interval [min,max]
int index[2];
enum Type { V, E, F };
Type type[2];
};
The zero-indexed values correspond to the minimum of the interval, the one-indexed
values to the maximum. If the extreme point is exactly a vertex, the type is set to
V.If
the extreme points are exactly an edge, the t ype is set to
E. If the extreme points are
exactly a face, the type is set to
F.
Just as for convex polygons, the extremal query must be modified to support
calculation of the contact set via
ProjInfo. In particular, we need to know the enu-
merated ...
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