[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.14.2 Physics using Bullet

The ‘bullet’ plugin implements physics for Crystal Space using the Bullet library (http://www.bulletphysics.com/Bullet/).

Doing the Timed Physics Simulation

To make sure the physics simulation proceeds correctly in time you must tell Bullet how much time has elapsed since previous frame so that it can calculate the collisions and physical interactions that happened during that time. The iDynamics->Step() function is responsable for that. As a parameter it has a delta which is a floating point number that represents the number of seconds to calculate.


This document was generated using texi2html 1.76.