#include "TA/Physics/CollisionObjectAABBMesh.h"
Inheritance diagram for TA::CollisionObjectAABBMesh:

Call the static function TA::CollisionObjectAABBMesh::CreateNew to create a new instance of this class.
This class provides a standard implementation of TA::CollisionObjectComplex using an Axis Aligned Bounding Box Tree. It has an O(log n) performance, and takes up O(n) space.
An TA::CollisionObjectAABBMesh can be added to the physics simulation using an TA::StaticObject.
AddRef() and Release() can be called to increment and decrement the reference count. If the reference count is zero after a call to Release() the object will be automatically deleted. Reference counted objects should only be created using new.
Public Member Functions | |
| void | Initialise (int nNumVertices, int nNumPolygons, int nNumPolygonIndices) |
| void | Finalise () |
| virtual bool | Serialisable () const |
| void | Render () |
| void | AddVertex (const Vec3 &v3Pos) |
| void | AddPolygon (int nNumVertices, const int *pnIndexList, u32 nAttribute=0x0) |
| void | FinishedAddingGeometry () |
| const Data * | GetData () const |
| bool | TestLineForCollision (const Vec3 &v3Start, const Vec3 &v3Normal, float fLength, Collision &collision) const |
| void | CachedLocalPolygons (CollisionObjectCachedPolyData &cachedPolyData, const AABB &aabb, void *pDynamicObjectUserData) const |
| virtual const AABB & | GetAABB () const |
Internal | |
| void | Serialise (Serialiser &serialiser, const Version &version) |
Static Public Member Functions | |
| static CollisionObjectAABBMesh *TAC_CALL | CreateNew () |