CToolTraceCollision
Overview
Line trace collision with multi-channel support and optional debug visualization.
Functions
| Name | Description |
|---|---|
| lineIntersection | Perform a line trace against multiple collision channels. When debug=true, draws arrows (red for trace, green for hit). |
FHitResult hitResult;
bool hit = lineIntersection(myActor,
startLocation, endLocation,
hitResult,
{ECC_WorldStatic, ECC_Pawn},
false, // traceComplex
true // debug draw
);
if (hit) {
FVector impactPoint = hitResult.Location;
}