CinderBlocks: Bullet Physics

Installing or updating Bullet

  1. Download the Bullet source from http://bulletphysics.com
  2. Follow the Bullet build instructions:
  3. Put the Bullet folder (e.g. "bullet-2.75") in your cinder/blocks/bullet directory and rename it to "bullet"

Creating a project using Bullet

  1. Create a new Project using TinderBox. It should reside in a subfolder of cinder/blocks/bullet, e.g. cinder/blocks/bullet/apps

NOTE: In the directions above, replace <your-cinder-path> with the root of your cinder working directory and <Debug|Release> with the appropriate one of these two configurations (to build your application in Debug, for example, you also need to have built Bullet and Cinder in Debug).

You're good to go! The Bullet CinderBlock includes some functions for conveniently creating common shapes from Cinder data structures, such as boxes, spheres, imported OBJ models and heightfield images. We recommend referring to the apps in the cinder/blocks/bullet/samples folder to see how to set up a basic physics environment.