3D Web · Exercise 4 of 4 Previous
Advanced
Brake the ride
A 20 kg ride body pedals with 30 N, but braking does nothing.
In step(input), use linear damping 4 while input.brake is true and 0.3 otherwise, as the build does.
What Check tests
- The ride is moving before braking
- One second of braking brings it under 0.1 m/s
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Your page
Press Run to see the page.
Console
Nothing logged yet.