A downloadable engine for Windows

My second try at making physics from scratch !

Commands :

  • Arrows keys to control the Gyrobot
  • C/V/B to spawn bodies (Circle/Square/Rect)
  • Z to toggle spring spawning between bodies
  • F3 to clear spawned bodies
  • F2 pause/play the simultation, F9 to step update

My goal of this project was to simulate an electric unicycle, mine died IRL so i made a virtual one to compensate my loss 🗿

This include full 2d rigidbody simulation, spring joints and my goal :
a cute gyrobot constitued of 1 hinge joint, a motor and a controllable spring joint

I tried to simulate physics with my own algorithms, i had previous experience with implementing SAT & GJK but this time i decided to not look up at sources and find a way myself to emulate the real world (it was hard and time expensive).

This is written in c++, windowing and line drawing is done with SDL
Source code is available at https://github.com/blackbird806/treklair/tree/%F0%9F%97%BF
(it is trash dont go look it up i rushed the implementation without any architecture)

Published 4 days ago
StatusPrototype
PlatformsWindows
AuthorIronax
GenrePlatformer, Simulation
Tags2D, Physics, Prototype

Download

Download
GyroPhysics.zip 2 MB

Install instructions

Extract all files and launch the exe, it is not signed so you'll have the usual windows warning

Leave a comment

Log in with itch.io to leave a comment.