Dodgy physics code

I spent today trying get the physics for the unicycle's forwards-backwards rotation to work right. As I suck at maths this has proved to be a lot more difficult than I anticipated (damn you, third dimension!!) This has involved a lot of random sign flipping and constant changing and most of the code has been hacked to pieces in the process. Oh well.

The aim is to have it so you can lean forwards and backwards with your mouse and control the wheel with the keyboard. At the moment this is incredibly difficult to control, so we may have to tweak it to make it a bit easier, maybe by giving the player less control over the wheel.

You will also be able to turn by tilting left and right, which should be fairly straightforward to implement as I probably won't make it realistic.


Here the rider (white line) is leaning backwards and the unicycle is about to tip over.

We have a lot to do before this playable and I don't know if we will be able to finish it on time, but we're going to meet to work on it tomorrow so hopefully we will be able to get a lot of it done then. Cav is also working on some music so we should be able to up the production values a bit by sunday.

Here is a graph to prove I did originally have a plan for this: