#include "TA/Physics/CollisionObject.h"
Inheritance diagram for TA::CollisionObject:
Go here more information on collision objects.
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 Types | |
enum | Type { TYPE_CONVEX = 0, TYPE_LINE_LIST, TYPE_CAPSULE, TYPE_SPHERE, TYPE_CYLINDER, TYPE_COMPLEX, TYPE_CACHED_POLY_DATA, TYPE_COMBO, NUM_TYPES } |
Public Member Functions | |
bool | InitialiseFromFile (const Char *szFileName) |
bool | SaveToFile (const Char *szFileName) |
bool | InitialiseFromFileInMemory (void *pFileData, int nSizeInBytes) |
bool | SaveToFileInMemory (void *pFileData, int nSizeInBytes) |
int | CalculateFileSize () |
virtual bool | Serialisable () const |
virtual void | Render (const MFrame &mFrame) |
virtual const AABB & | GetAABB () const =0 |
virtual bool | TestLineForCollision (const Vec3 &v3Start, const Vec3 &v3Normal, float fLength, Collision &collision) const =0 |
int | GetCollisionObjectType () const |
void | SetUserData (u32 nUserData) |
u32 | GetUserData () const |
Internal | |
virtual void | Serialise (Serialiser &serialiser, const Version &version) |
Protected Member Functions | |
CollisionObject (int nType) | |
const AABB & | NoGetAABB () const |
Protected Attributes | |
AABB | s_NullAABB |