Module 13 · In your browser · challenge 2 of 3 in this lesson

lerpYaw takes the short way round and returns 0 to 360

A code cell with the real Luau runner grades it. No Studio needed.

Open

Luau
Ctrl Enter runs the cell. Checked by tests

Level 2, Builder

Challenge

Fix lerpYaw and interpolate in the interp-cell Run above.

Start from
The game at milestone m14 (download)
Check it here
Run the code cell; the challenge completes when it passes. No Studio needed.

Done means

  • lerpYaw takes the short way round and returns 0 to 360
  • interpolate blends between the two snapshots around renderTime and holds at both ends
  • Every test in interp-cell passes