Description
The HitTriggers
method in the SceneTrace
struct is used to configure the trace to consider trigger volumes during the trace operation. This method is part of the filtering options available in the SceneTrace
class, allowing you to specify whether the trace should interact with trigger entities in the scene.
Usage
To use the HitTriggers
method, you typically chain it with other trace configuration methods on a SceneTrace
instance. This method modifies the trace to include trigger volumes in its hit detection.
Example
// Example of using HitTriggers in a SceneTrace
SceneTrace trace = new SceneTrace();
trace = trace.HitTriggers();
// Configure other trace parameters
trace = trace.FromTo(startPosition, endPosition);
trace = trace.Radius(1.0f);
// Run the trace
SceneTraceResult result = trace.Run();
if (result.Hit)
{
// Handle hit
}