#include "TA/Physics/CollisionObjectSimple.h"
Inheritance diagram for TA::CollisionObjectSimple:
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.
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) |