This is a paid asset, but now you can download Bicycle Power Simulator for FREE, but please remember this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.
Detail this asset from Unity Store: Original Link
Bicycle Power Simulator v1.1
This package helps you to compute the speed a bicycle can move by entering the leg power in watts from the rider.
By using the air drag, rolling resistance and gravity equations, we can accuratly calculate at what speed a bicycle would move.
The 2 main methods are:
SetPower(power) , to move the bike and get the resulting speed
GetpowerforSpeed(speed), to get the needed power so the bike can reach the given speed.
One of the many applications of this simulation is to make a bike move on the screen by inputing the power from a real bike (home trainer) and get realistic results
A demo scene is using a Spline Controller to move a bike with various power input and speed
The slope will affect the speed, power input, acceleration and braking in realtime.
A 3D bike model and animated rider are also included