Open main menu

CDOT Wiki β

Changes

Team Guardian Physics

298 bytes added, 04:41, 6 April 2011
CollisionGeometry
# iCSphere : A collision sphere. Possesses a single radius. <pre>#include "iCSphere.h"</pre>
# iCOBB : A body oriented bounding box. Possesses 3 radius values, one for each dimension. This shape rotates with the RigidBody. <pre>#include "iCOBB.h"</pre>
 
The collision primitives can be created and associated with a RigidBody as follows, respectively:
 
* <code>iCollisionGeometry* CreateCSphere(iRigidBody* rb=NULL, float radius=10.0f)</code>
* <code>iCollisionGeometry* CreateCOBB(iRigidBody* rb=NULL, const Vector& radius=Vector(10, 10, 10))</code>
== Listening For Collisions ==