A downloadable project

During Lockdown (Coronavirus pandemic) I was missing my motorbike so I decided to start a Motorbike physics sim, I started off with balance and used Machine Learning, this using the PPO algorithm. I also rigged up a character to ride the bike using Inverse Kinematics. The next steps are to model real-world engine performance, tire physics lock in my bike physics (wheelies etc).

I was having a few issues - the algorithm was hitting a plateau and couldn't improve further. After a few tweaks, including trying to streamline and make the movement more organic, I ended up with a very efficient brain but it was the opposite of organic (see below). It switches as fast as possible from max to min to balance, somewhat exploiting the system. Further work is required to get his nice and smooth.

Download

Download
MotorcycleAgent.cs 3 kB

Install instructions

The download includes my agent script for a unity ml-agents setup.

Comments

Log in with itch.io to leave a comment.

are u sure this isnt a virus if it isnt show me more pictures and show me its scripts and tell me how it works before i beleiv you

Its a 3kb C# script