Open main menu

CDOT Wiki β

Changes

Team Guardian Physics

373 bytes added, 22:56, 6 April 2011
Collision Detector Only
</li>
<li>
Implement the <code>iRigidBody</code> interface in some of your custom classes. A collision geometry requires a RigidBody instance to be passed in on creation (it can also be attached to a RigidBody at a later time) for it to use to get its . Let; let's take a look at Please see the [[Team_Guardian_Physics#RigidBody |RigidBody reference]] for behaviour that why this is expected from a RigidBodyso.
</li>
</ol>
 
==== CollisionGeometry and RigidBody ====
 
A collision geometry uses a RigidBody for location, rotation and velocity inforomation. When implementing the iRigidBody interface, it is crucial that <code>getRBDynamics()</code> return a up to date RBDynamics struct. At minimum, the following properties should be consistent with the actual attributes of the object:
<pre>
</pre>
Please see the [[Team_Guardian_Physics#RigidBody |RigidBody reference]] for behaviour that is expected from a RigidBody.
== Framework Reference ==