Cyclone | Cyclone: cyclone::IntersectionTests Class Reference |
#include <collide_fine.h>
Static Public Member Functions | |
static bool | sphereAndHalfSpace (const CollisionSphere &sphere, const CollisionPlane &plane) |
static bool | sphereAndSphere (const CollisionSphere &one, const CollisionSphere &two) |
static bool | boxAndBox (const CollisionBox &one, const CollisionBox &two) |
static bool | boxAndHalfSpace (const CollisionBox &box, const CollisionPlane &plane) |
Does an intersection test on an arbitrarily aligned box and a half-space. |
These can be used to drive the coarse collision detection system or as an early out in the full collision tests below.
|
|
|
Does an intersection test on an arbitrarily aligned box and a half-space. The box is given as a transform matrix, including position, and a vector of half-sizes for the extend of the box along each local axis. The half-space is given as a direction (i.e. unit) vector and the offset of the limiting plane from the origin, along the given direction. |
|
|
|
|
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:21 2006). |