# Keep castRay horizontal and report the ground answer beside it · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/92ec748ec9bc5f9bd62b064a500a00acdb756800)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 92ec748ec9bc5f9bd62b064a500a00acdb756800

Requested commit: 92ec748ec9bc5f9bd62b064a500a00acdb756800

Commit: 92ec748ec9bc5f9bd62b064a500a00acdb756800

Tree: 6214686f8c0e5ba5644d406f3891da93f04db4bc

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Keep castRay horizontal and report the ground answer beside it

castRay is what the wall data is checked against, ray by ray, across every
reviewed map: does the eye at this height get through this opening. Teaching
it the descending rule changed the question it answers, and sixteen reviewed
sightlines went red without a single band being wrong. It is the plain
horizontal first hit again.

Where the ground behind a cleared wall begins is visibleIntervalsAlong, and
the cone still paints it. A sightline report now carries both for every ray:
where the eye stops, and whether a player standing at that distance would be
seen there at all.

A wall's hidden strip starts where the floor behind it was sampled, half a
unit past its far face. Nearer than that the ray is still inside or against
the footprint, with no floor measured and nobody standing on the wall itself,
so that ground reads as the polygon drew it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

```

## Parents

- [d1a4246662b08a055c4835f384efb72b7b8d77f7](https://git.cafe/dara/icarus/commit/d1a4246662b08a055c4835f384efb72b7b8d77f7?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/92ec748ec9bc5f9bd62b064a500a00acdb756800?format=markdown)
