Returns true if there is an unobstructed line of sight from from to to.
Traces the hex line between the two cells and checks whether any intermediate
cell's terrain elevation pokes above the straight sight line. Both observer
and target are assumed to have their eyes at eyeHeight world units above
the terrain surface.
Uses the shared ELEVATION_SCALE by default — pass elevationScale if your
terrain geometry uses a custom elevationScale so LOS matches the visuals.
Returns
trueif there is an unobstructed line of sight fromfromtoto.Traces the hex line between the two cells and checks whether any intermediate cell's terrain elevation pokes above the straight sight line. Both observer and target are assumed to have their eyes at
eyeHeightworld units above the terrain surface.Uses the shared ELEVATION_SCALE by default — pass
elevationScaleif your terrain geometry uses a customelevationScaleso LOS matches the visuals.