Difference between revisions of "Bullet"
Jump to navigation
Jump to search
GergelyPatai (talk | contribs) (Updated for the cabalised version.) |
(Added section "Combining LambdaCube and Bullet" and some categories) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | == Overview == |
||
+ | |||
[http://www.bulletphysics.com/Bullet/wordpress/bullet 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. |
[http://www.bulletphysics.com/Bullet/wordpress/bullet 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. |
||
+ | |||
+ | == Installation == |
||
A cabalised wrapper is available: http://hackage.haskell.org/package/bullet |
A cabalised wrapper is available: http://hackage.haskell.org/package/bullet |
||
Line 5: | Line 9: | ||
Note that you have to install the library before installing the package: |
Note that you have to install the library before installing the package: |
||
− | svn checkout http://bullet.googlecode.com/svn/ |
+ | svn checkout http://bullet.googlecode.com/svn/tags/bullet-2.78 bullet-read-only |
cd bullet-read-only |
cd bullet-read-only |
||
cmake . |
cmake . |
||
Line 14: | Line 18: | ||
cabal install bullet |
cabal install bullet |
||
+ | |||
+ | == Todo == |
||
+ | |||
+ | * vehicle interface |
||
+ | * constraints |
||
+ | * soft body system |
||
+ | |||
+ | == OpenGL example == |
||
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: |
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 |
cabal unpack bullet |
||
− | cd Examples |
+ | cd bullet-x.x.x/Examples |
ghc --make -O2 BulletExample |
ghc --make -O2 BulletExample |
||
./BulletExample |
./BulletExample |
||
Line 27: | Line 39: | ||
[[Image:Bullet-example-2.png]] |
[[Image:Bullet-example-2.png]] |
||
+ | |||
+ | |||
+ | == Combining LambdaCube and Bullet == |
||
+ | |||
+ | Hackage contains an example for combining LambdaCube and Bullet: |
||
+ | [http://hackage.haskell.org/package/lambdacube-bullet lambdacube-bullet] |
||
+ | |||
+ | |||
+ | [[Category:Packages]] |
||
+ | [[Category:Games]] |
||
+ | [[Category:Libraries]] |
Revision as of 21:32, 18 May 2012
Overview
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.
Installation
A cabalised wrapper is available: http://hackage.haskell.org/package/bullet
Note that you have to install the library before installing the package:
svn checkout http://bullet.googlecode.com/svn/tags/bullet-2.78 bullet-read-only cd bullet-read-only cmake . make sudo make install
Now you can install the Haskell binding:
cabal install bullet
Todo
- vehicle interface
- constraints
- soft body system
OpenGL example
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 ./BulletExample
You can use the arrows to navigate the scene and P to pause/unpause.
Combining LambdaCube and Bullet
Hackage contains an example for combining LambdaCube and Bullet: lambdacube-bullet