Perform a line of sight analysis between two points in real time.
A line of sight analysis can be used to assess whether a view is obstructed between an observer and a target. Obstructing features could either be natural, like topography, or man-made, like buildings. Consider an events planning company wanting to commemorate a national event by lighting sequential beacons across hill summits or roof tops. To guarantee a successful event, ensuring an unobstructed line of sight between neighboring beacons would allow each beacon to be activated as intended.
Tap to place the starting point for the line. Tap again to place the end point.
- Create an
AnalysisOverlay
and add it to the scene view. - Create a
LocationLineOfSight
with initial observer and target locations and add it to the analysis overlay. - Listen for taps on the scene view.
- Update the target location with
lineOfSight.TargetLocation = scenePoint
.
- AnalysisOverlay
- LocationLineOfSight
- SceneView
3D, line of sight, visibility, visibility analysis