True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

TA::CollisionObject Class Reference

#include "TA/Physics/CollisionObject.h"

Inheritance diagram for TA::CollisionObject:

Inheritance graph

Detailed Description

The base class of all collision objects.

Go here more information on collision objects.

Reference Counting:
This class is reference counted. After the object is created it will have a reference count of one. 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


© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.