Description
The UseHitboxes
method in the SceneTrace
struct is used to specify whether hitboxes should be considered during a trace operation. This method allows you to include or exclude hitboxes from the trace results based on the boolean parameter provided.
Usage
To use the UseHitboxes
method, call it on an instance of SceneTrace
and pass a boolean value indicating whether hitboxes should be included in the trace. If true
, hitboxes will be considered; if false
, they will be ignored.
Example
// Example of using UseHitboxes method
SceneTrace trace = new SceneTrace();
trace = trace.UseHitboxes(true); // Include hitboxes in the trace
// Continue setting up the trace as needed
trace = trace.FromTo(startPosition, endPosition);
// Run the trace
SceneTraceResult result = trace.Run();