3D Web · Exercise 1 of 6Next
Beginner
Turn a wheel at a real speed
The bike rolls at 18 km/h and the wheel's rolling radius is 0.352 m. The wheel in the starter turns 0.1 radians per frame, so its speed depends on the screen.
Work out omega from the road speed and radius, turn the wheel with delta time, and log turns per second: <n> with two decimals.
What Check tests
- It logs turns per second: 2.26
- The wheel is turning
- The code uses delta time
- The wheel turns at about 14.2 rad/s, measured
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.