Personal tools


From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Updated for the cabalised version.)
(Corrected a line in the example execution script)

Revision as of 07:42, 19 November 2009

Bullet is a professional open source multi-threaded 3D Collision Detection and Rigid Body Dynamics Library written in C++. It is free for commercial use under the zlib license.

A cabalised wrapper is available:

Note that you have to install the library before installing the package:

svn checkout bullet-read-only
cd bullet-read-only
cmake .
sudo make install

Now you can install the Haskell binding:

cabal install bullet

The example on the screenshot below can be found in the package. You have to compile it by hand. Make sure that OpenGL and GLUT is installed, then enjoy:

cabal unpack bullet
cd bullet-x.x.x/Examples
ghc --make -O2 BulletExample

You can use the arrows to navigate the scene and P to pause/unpause.