Personal tools

Bullet

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
   
 
[[Media:BulletExample.hs|BulletExample.hs]] - example program
 
[[Media:BulletExample.hs|BulletExample.hs]] - example program
  +
  +
requirements: glut, [http://www.bulletphysics.com/Bullet/wordpress/bullet Bullet]
  +
  +
compile command:
  +
ghc -XForeignFunctionInterface Bullet.hs BulletExample.hs -lbulletdynamics -lbulletmath -lbulletcollision -lstdc++ -o example -package GLUT
  +
   
 
[[Image:BulletExample.jpg|BulletExample.jpg]]
 
[[Image:BulletExample.jpg|BulletExample.jpg]]

Revision as of 14:20, 28 June 2008

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

Bullet is a C++ library.

Here is a haskell wrapper and an example for it.

Bullet.hs - bullet haskell wrapper

BulletExample.hs - example program

requirements: glut, Bullet

compile command: ghc -XForeignFunctionInterface Bullet.hs BulletExample.hs -lbulletdynamics -lbulletmath -lbulletcollision -lstdc++ -o example -package GLUT


BulletExample.jpg