SceneTrace HitTriggers()

book_4_sparkGenerated
code_blocksInput

Description

The HitTriggers method in the SceneTrace class is used to configure the trace to include trigger entities in its results. This method is part of the filtering options available for scene traces, allowing you to specify whether or not trigger entities should be considered during the trace operation.

Usage

To use the HitTriggers method, you need to call it on an instance of SceneTrace. This method does not take any parameters and returns the modified SceneTrace instance, allowing for method chaining.

Example

// Example of using HitTriggers in a SceneTrace
SceneTrace trace = new SceneTrace();
trace.HitTriggers();

// Continue configuring the trace as needed
trace.Run();