Line of sight
Determine if the line of sight is obstructed by any object in the scene.
- Ensure the box for Enable Mesh Colliders on the
ArcGIS Map Viewcomponent of
ArcGIS Map Actoris checked.
- Add a
Line of Sightand a
Way Pointsactor to the scene and place them at the desired locations.
- Modify the
Path Splinecomponent of the
Way Pointsactor to define the path that the target object is moving along.
Line of Sightactor looks for an instance of
Begin Playand performs a line trace between them at each frame.
- Any actors that unintentionally interfere with the trace can be added to the
Actors to Ignoreargument of the line trace in the
Line of Sightblueprint.
- The visual cue for the line of sight changes its color depending on whether the line trace hits the target object or not.
Building models for New York are loaded from a 3D object scene layer hosted by Esri.
WorldElevation3D/Terrain3D Elevation data is loaded from the Terrain 3D layer hosted by Esri.
line of sight, raycast, visibility, visibility analysis