This project is a simple 2D physics engine demo written in Odin using Raylib for rendering. It demonstrates basic physics interactions between circles and rectangles, including gravity, collision detection, and momentum transfer.
- Circle-circle, rect-rect, and circle-rect collision detection and response
- Gravity and boundary checks
- Mouse dragging for both circles and rectangles (bonus feature)
- Momentum and friction
- Odin compiler
- Raylib Odin bindings (included via
vendor:raylibimport)
- Clone this repository (or copy the files to your machine).
- Build the project:
odin run hello.odin
- Controls:
- Left Mouse Button: Click and drag circles or rectangles.
- Objects will bounce and interact with each other and the window boundaries.
DC_Hackathon/
├── hello.odin # Main source code
This project is for educational/demo