The MapNode
field in the TraceResult
struct represents the specific map node that was hit during a trace operation, if any. This field is part of the Editor
namespace and is used to determine which part of the map was intersected by the trace.
The MapNode
field in the TraceResult
struct represents the specific map node that was hit during a trace operation, if any. This field is part of the Editor
namespace and is used to determine which part of the map was intersected by the trace.
To use the MapNode
field, you typically perform a trace operation and then check the TraceResult
to see if a map node was hit. If the trace was successful and a map node was hit, the MapNode
field will contain a reference to the MapNode
object that was intersected.
Example usage:
TraceResult result = PerformTrace();
if (result.Hit)
{
Editor.MapDoc.MapNode hitNode = result.MapNode;
if (hitNode != null)
{
// Process the hit map node
}
}
TraceResult result = PerformTrace(); if (result.Hit) { Editor.MapDoc.MapNode hitNode = result.MapNode; if (hitNode != null) { // Process the hit map node } }