function supportUnder
simulation/src/surfacePlacement.ts:129
supportUnder(placements: Iterable<SurfacePlacement>, body: Body, direction: BodyFixedDirection, terrain: number) → Support
The tallest support under a ray: the terrain, or a placement's relief.
Height wins, never order, so a deck over a hill and a hill through a deck
both answer the higher of the two. Only placements on body count — a
caller handing over every structure in the world gets the same answer as
one that filtered, which is what lets the world, the camera and the feet
read one rule rather than each keep the filter.
- placementsIterable<SurfacePlacement>
- Undocumented
- bodyBody
- Undocumented
- directionBodyFixedDirection
- Undocumented
- terrainnumber
- Undocumented
ReturnsSupport