Command Palette

Search for a command to run...

Hectal
Phase 9: Animation
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

  1. It logs turns per second: 2.26
  2. The wheel is turning
  3. The code uses delta time
  4. 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.