matwilso / carsim2d

Simple top-down 2D car simulator made in C++ using box2D for physics and SFML for rendering.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

carsim2d

Simple top-down 2D car simulator made in C++ using box2D for physics and SFML for rendering.

This was a weekend project to dust off my C++ knowledge and practice developing a Software 1.0 simulator to better understand the principles.

It is pretty barebones and could use a bit of cleaning up, so don't get that excited.

demo.mp4

References

For the initial car physics: http://www.iforce2d.net/b2dtut/top-down-car

For vision sensor, I use box2d's ray-tracing to create a 1D RGB image which drops off with depth. The idea is loosely based off: https://andyljones.com/megastep/

TODO

  • road maker / scene generator tools
  • other moving agents
  • varying lighting?

About

Simple top-down 2D car simulator made in C++ using box2D for physics and SFML for rendering.

License:MIT License


Languages

Language:C++ 92.3%Language:C 7.5%Language:Shell 0.2%