A small physics simulation in c++, using sokol for rendering. Project to learn c++ and gpu stuff.
  • C++ 96.7%
  • Makefile 1.9%
  • GLSL 1.4%
Find a file
2026-10-05 17:14:43 +11:00
include save some progress 2026-09-12 15:55:55 +10:00
src fixed static friction, epic 2026-10-05 17:14:43 +11:00
tools holy moly, got a pixel buffer to write to the screen for now. got a green rectangle working 2026-08-26 19:36:10 +10:00
.clangd we got a ball and a bounding box 2026-08-30 13:35:57 +10:00
.gitattributes Add .gitattributes 2026-09-29 11:21:30 +10:00
.gitignore holy moly, got a pixel buffer to write to the screen for now. got a green rectangle working 2026-08-26 19:36:10 +10:00
draw.cpp ball that keeps bouncing 2026-09-23 13:16:07 +10:00
draw.hpp save some progress 2026-09-12 15:55:55 +10:00
game.hpp fixed static friction, epic 2026-10-05 17:14:43 +11:00
main.cpp some interesting findings. semi-implicit euler loses energy, the position correction adds energy. 2026-09-24 13:53:38 +10:00
Makefile we got a ball and a bounding box 2026-08-30 13:35:57 +10:00
README.md Update README.md 2026-09-27 10:48:14 +10:00
shader.glsl holy moly, got a pixel buffer to write to the screen for now. got a green rectangle working 2026-08-26 19:36:10 +10:00

ballpit

A small physics simulation in c++, using sokol for rendering. Project to learn c++ and gpu stuff.

TODO

  • ball
  • box
  • polygon
  • hinge joint
  • slide joint
  • distance joint
  • fixed joint
  • gear joint
  • velocity motor
  • angle limits
  • pd controller
  • spring
  • continuous collision detection
  • islands/sleeping