I’m working on a motorcycle racing game and having trouble with my motorcycle script, specifically getting the physics to work properly. The script will need to be used on several different motorcycles, each with different specifications.
I want to write a script which will result in realistic motorcycle physics, but I have no idea where to start.
I’d probably start with one of the easier car tutorials, like -
http://www.gotow.net/andrew/blog/?page_id=78
Make it only front/back wheel colliders, and tweak the CentreOfGravity so it doesn’t just fall on its side.
Suspension is quite a bit different on a bike too, but might be able to angle the wheel collider to simulate front forks.
Animation of the rider is probably the toughest part, leaning/shifting weight to the side as the bike is turning, while hands still contact the bike. very possible tho.
Super realistic isn’t always fun and gets more complex/time consuming to implement. Better have something that feels right, even if it’s not technically accurate.