Declared in LaserRangeFinder

Declaration

void OnTraceHit(
    double trueRange,
    bool isDetected
);

Description

Executed when a sample is created through Unreal with trace-derived range data. Called from C++ after LineTrace completes. Applies calibration/accuracy without running analytical target search.

Parameters

NameDescription
trueRange[m] The true distance measured by the LineTrace
isDetectedWhether the trace hit a valid target