AndrewB330 / LitWorld2D

Easy implementation of 2d physics. Features: particles, boxes, spring joints, soft bodies, inflated bodies, liquid-like simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo

LitWorld2D - simple 2d physics engine in 300 lines of code. It has following features implemented:

  • Particles
  • Boxes
  • Spring joints
  • "Inflated" bodies

This physics engine doesn't support impulse accumulation or warm-starting or any other "smart" techniques. So it is not very stable and sometimes can't converge. It is done for tutorials.

Dependencies

  • glm
  • glew
  • SDL2

Demo

Demo Demo

License

MIT License

Copyright (c) 2021 Andrii Borziak

About

Easy implementation of 2d physics. Features: particles, boxes, spring joints, soft bodies, inflated bodies, liquid-like simulation

License:MIT License


Languages

Language:C++ 97.0%Language:CMake 3.0%