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

segmentHitsBox clips against both X and Z slab bounds (-dz and dz)

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

Open

Luau
Ctrl Enter runs the cell. Checked by tests

Level 1, Apprentice

Challenge

Fix segmentHitsBox in the sightline-check cell above so it clips the Z slab as well as X and passes all four tests.

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

  • segmentHitsBox clips against both X and Z slab bounds (-dz and dz)
  • Off-axis walls (z = 10..14) no longer report a false sightline block on z = 0
  • All four assertions in sightline-check pass