bullet-physics-playground / bpp

The Bullet Physics Playground – Bullet Real-Time Physics Simulation.
https://github.com/bullet-physics-playground
Other
35 stars 6 forks source link
lua physics-simulation povray qt5 simulation

The Bullet Physics Playground

A very simple physics simulation software.

Features

Screenshot

Screenshot as of b9331bf2.png

Videos on YouTube

Bullet Physics Playground

Build

Select your operating system:

Run

Start with GUI:

$ release/bpp

Start without GUI and render a 400 frames animation with POV-Ray from the command-line:

$ echo "render = 1" | release/bpp -f demo/basic/00-hello-pov.lua -n 400 -i

Pipe bpp simulation data into gnuplot:

$ release/bpp -n 200 -f demo/basic/00-hello-cmdline.lua | gnuplot -e "set terminal dumb; plot for[col=3:3] '/dev/stdin' using 1:col title columnheader(col) with lines"

to see a bouncing sphere:

  10 +---------------------------------------------------------------------+   
     | AA   +      +      +      +      +      +      +      +      +      |   
   9 |-+AA                                                       Y    A  +-|   
     |   AA               AAAA                                             |   
   8 |-+  AA            AA   AAA                                         +-|   
     |     A           AA      AA                                          |   
   7 |-+   AA          A        A                                        +-|   
     |      A         A          A                                         |   
   6 |-+    AA       A           AA                                      +-|   
     |       A      AA            A                                        |   
   5 |-+     A      A             AA                                     +-|   
     |        A    AA              A        AAA                            |   
   4 |-+      A    A               AA     AAA  AA                        +-|   
     |         A   A                A    AA     AA                         |   
   3 |-+       A  A                  A  AA        A                      +-|   
     |          A A                  A  A          A   AAAAAA              |   
   2 |-+        AA                   A A           AA AA    AA           +-|   
     |          AA                    AA            AAA      AAAAAAAA      |   
   1 |-+         A                    A              A        AA     AAAAAA|   
     |      +      +      +      +      +      +      +      +      +      |   
   0 +---------------------------------------------------------------------+   
     0      20     40     60     80    100    120    140    160    180    200  

For more demos, see demo/.

For a list of Lua-accessible classes, functions and properties, run:

$ release/bpp -f demo/basic/00-luabind.lua

Basic Usage HOWTO

Viewer

Keyboard shortcuts

Mouse usage

Editor

The editor has a few known problems:

Wiki

Chat

Gitter

Author

Contributors

License

The Bullet Physics Playground is licensed under the GNU Lesser General Public License.