#include <OPC_Common.h>
Public Types | |
| enum | ssv_type { SSV_PSS, SSV_LSS } |
Public Member Functions | |
| inline_ | CollisionAABB () |
| Constructor. | |
| inline_ | CollisionAABB (const AABB &b) |
| Constructor. | |
| void | CreateSSV () |
| inline_ void | GetMax (Point &max) const |
| Get max point of the box. | |
| inline_ float | GetMax (udword axis) const |
| Get component of the box's max point along a given axis. | |
| inline_ void | GetMin (Point &min) const |
| Get min point of the box. | |
| inline_ float | GetMin (udword axis) const |
| Get component of the box's min point along a given axis. | |
| inline_ BOOL | IsInside (const CollisionAABB &box) const |
| inline_ void | SetMinMax (const Point &min, const Point &max) |
| inline_ | ~CollisionAABB () |
| Destructor. | |
Public Attributes | |
| Point | mCenter |
| Box center. | |
| Point | mExtents |
| Box extents. | |
| Point | mPoint0 |
| Point | mPoint1 |
| End points of line segment. | |
| float | mRadius |
| ssv_type | mType |
| Type of SSV. | |
An AABB dedicated to collision detection. We don't use the generic AABB class included in ICE, since it can be a Min/Max or a Center/Extents one (depends on compilation flags). Since the Center/Extents model is more efficient in collision detection, it was worth using an extra special class.
Definition at line 30 of file OPC_Common.h.
Definition at line 80 of file OPC_Common.h.
| inline_ CollisionAABB::CollisionAABB | ( | ) | [inline] |
Constructor.
Definition at line 34 of file OPC_Common.h.
| inline_ CollisionAABB::CollisionAABB | ( | const AABB & | b | ) | [inline] |
Constructor.
Definition at line 36 of file OPC_Common.h.
| inline_ CollisionAABB::~CollisionAABB | ( | ) | [inline] |
Destructor.
Definition at line 38 of file OPC_Common.h.
| void CollisionAABB::CreateSSV | ( | ) | [inline] |
Definition at line 84 of file OPC_Common.h.
| inline_ void CollisionAABB::GetMax | ( | Point & | max | ) | const [inline] |
Get max point of the box.
Definition at line 43 of file OPC_Common.h.
| inline_ float CollisionAABB::GetMax | ( | udword | axis | ) | const [inline] |
Get component of the box's max point along a given axis.
Definition at line 48 of file OPC_Common.h.
| inline_ void CollisionAABB::GetMin | ( | Point & | min | ) | const [inline] |
Get min point of the box.
Definition at line 41 of file OPC_Common.h.
| inline_ float CollisionAABB::GetMin | ( | udword | axis | ) | const [inline] |
Get component of the box's min point along a given axis.
Definition at line 46 of file OPC_Common.h.
| inline_ BOOL CollisionAABB::IsInside | ( | const CollisionAABB & | box | ) | const [inline] |
Checks a box is inside another box.
| box | [in] the other box |
Definition at line 66 of file OPC_Common.h.
Setups an AABB from min & max vectors.
| min | [in] the min point |
| max | [in] the max point |
Definition at line 57 of file OPC_Common.h.
Box center.
Definition at line 77 of file OPC_Common.h.
Box extents.
Definition at line 78 of file OPC_Common.h.
Definition at line 83 of file OPC_Common.h.
End points of line segment.
Definition at line 83 of file OPC_Common.h.
| float CollisionAABB::mRadius |
Definition at line 82 of file OPC_Common.h.
Type of SSV.
Definition at line 81 of file OPC_Common.h.