101 void GetRotatedExtents(
Matrix4& extents)
const;
const Vector3 * GetLocalEdgeNormals() const
Returns local edge normals.
Definition: ShapeOBB.cpp:202
Matrix4 mRot
O for Oriented.
Definition: ShapeOBB.h:105
Vector3 mExtents
B for Bounding.
Definition: ShapeOBB.h:104
bool ComputePlanes(Plane *planes) const
Computes the obb planes.
Definition: ShapeOBB.cpp:96
BOOL IsValid() const
Checks the CShapeOBB is valid.
Definition: ShapeOBB.cpp:45
void Rotate(const Matrix4 &mtx, CShapeOBB &obb) const
Recomputes the CShapeOBB after an arbitrary transform by a 4x4 matrix.
Definition: ShapeOBB.cpp:35
Vector3 mCenter
B for Box.
Definition: ShapeOBB.h:103
void SetEmpty()
Setups an empty CShapeOBB.
Definition: ShapeOBB.cpp:28
different physics engine has different winding order.
Definition: EventBinding.h:32
bool ComputeVertexNormals(Vector3 *pts) const
Computes vertex normals.
Definition: ShapeOBB.cpp:166
Standard 3-dimensional vector.
Definition: ParaVector3.h:16
BOOL IsInside(const CShapeOBB &box) const
Checks the CShapeOBB is inside another CShapeOBB.
Definition: ShapeOBB.cpp:230
AABB-related code.
Definition: ShapeAABB.h:11
Class encapsulating a standard 4x4 homogeneous matrix.
Definition: ParaMatrix4.h:23
Defines a plane in 3D space.
Definition: ParaPlane.h:23
bool ContainsPoint(const Vector3 &p) const
Tests if a point is contained within the CShapeOBB.
Definition: ShapeOBB.cpp:60
const DWORD * GetEdges() const
Returns edges.
Definition: ShapeOBB.cpp:191
void Create(const CShapeAABB &aabb, const Matrix4 &mat)
Builds an CShapeOBB from an CShapeAABB and a world transform.
Definition: ShapeOBB.cpp:81
AABB with orientation by a matrix.
Definition: ShapeOBB.h:11
bool ComputePoints(Vector3 *pts) const
Computes the obb points.
Definition: ShapeOBB.cpp:132
void ComputeWorldEdgeNormal(DWORD edge_index, Vector3 &world_normal) const
Returns world edge normal.
Definition: ShapeOBB.cpp:224