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

TA::CollisionObjectSimple Class Reference

#include "TA/Physics/CollisionObjectSimple.h"

Inheritance diagram for TA::CollisionObjectSimple:

Inheritance graph

Detailed Description

A base class for all simple collision objects.

Collision objects that inherit from TA::CollisionObjectSimple can be add to an object of type TA::CollisionObjectCombo with the function TA::CollisionObjectCombo::AddCollisionObject. The following classes inherit from TA::CollisionObjectSimple:

These classes can be used in conjunction with the function TA::CollisionObjectCombo::AddCollisionObject to build a combo collision object. Combo collision objects are used by TA::DynamicObject.

For an example use of a type inheriting from TA::CollisionObjectSimple, see CollisionObjectComboExample.cpp.

Any collision object inheriting TA::CollisionObjectSimple is allowed to be collided with any other collision object inheriting TA::CollisionObjectSimple.

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 Member Functions

virtual AABB  CalculateBoundingBox () const =0
virtual const AABB &  GetAABB () const
virtual void  CalculateMass (float fDensity, float &fMass, Vec3 &v3CenterOfMass, Mat33 &m33Inertia) const =0

Protected Member Functions

 CollisionObjectSimple (int nType)


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