Set the scene
Choose a road profile, then tune the bike and the braking input to match your ride.
Personal study / motorcycle dynamics
Explore the decisions that change a motorcycle stop: speed, grip, mass, brake pressure and measured signals. A practical study in physics, sensing and software.
Independent educational project. This simulator is a personal learning exercise using simplified, publicly understood physics. It is not a safety system, riding instruction, engineering certification or professional advice.
Inputs
Ride profile
City profile selected · values update instantly
Playback
--
seconds--
meters--
meters before braking--
reaction + braking--
m/s²--
newtons--
newtons · zero means liftRun a simulation to see reaction distance, braking distance, and whether the motorcycle reaches the dog.
Readout
The model
Choose a road profile, then tune the bike and the braking input to match your ride.
Tyre grip caps braking force. Once that limit is reached, asking for more brake cannot shorten the stop.
Playback turns the calculation into motion, with sensor samples and a speed trace along the way.
Every sample tells a story
The simulation exposes the signals a vehicle control system would see while you brake. Each signal adds context, but none replaces real-world validation.
Notes from the study
Each control has a visible effect: speed, mass, grip, brake force, lean, brake bias, reaction time, and dog distance change the result; ABS changes wheel slip and stopping distance; sensor settings change the fused readout; radius changes tyre size and wheel angular speed.
An inertial measurement unit reports acceleration and rotation. In this model, longitudinal acceleration tracks deceleration while pitch, yaw and roll rates add a small motorcycle-motion signature.
GPS gives position, speed and fix state, useful for checking the broader movement. The simulated noise and lower sample cadence show why GPS can drift around the true path.
Wheel speed sensors measure angular velocity. The relationship is v = omega × r: a larger wheel radius means more linear travel per revolution, so the same angular speed implies a higher road speed.
City, wet and track profiles change friction, speed, mass and brake demand. The model caps braking at Fmax = friction × mass × gravity, so extra brake force cannot overcome limited tyre grip.
Dual ABS mode estimates front and rear slip from wheel speed, then limits each brake channel independently. It is educational only and does not represent a certified motorcycle ABS system.
The animation shows a restrained side-view lean while both tyres stay planted. Wheel radius changes the centre-of-mass height, so the fall limit is lean limit = atan(0.62 / (0.62 + radius − 0.31)). If the selected angle exceeds that limit, the motorcycle falls: lean angle > lean limit → fallen. A larger lean also reduces braking grip with grip = friction × cos(lean angle).
The C++ service, JavaScript Worker and browser fallback use the same core braking inputs; the Worker and fallback also expose the sensor-fusion playback when an API is unavailable.
For personal study and demonstration only. Results are illustrative, not a substitute for road testing, manufacturer data, qualified engineering review, or legal / safety advice. No confidential employer information or proprietary work is used here.