A very simple physics simulation software.
Select your operating system:
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
The editor has a few known problems:
It will crash if you try to use a non-existant file for a Mesh object. It will crash too if you try to edit the file name. The workaround is to comment out the Mesh and v:add() lines before editing them.
With scripts which load many objects, or big meshes, the typing can be very slow.
The Bullet Physics Playground is licensed under the GNU Lesser General Public License.