SceneTrace IgnoreStatic()

robot_2Generated
code_blocksInput

Description

The IgnoreStatic method in the SceneTrace class is used to configure a trace operation to ignore static objects. Static objects are those that do not move or change during the simulation, such as the ground or walls. By calling this method, you can ensure that the trace will not register hits with these types of objects, which can be useful in scenarios where you only want to interact with dynamic or moving objects.

Usage

To use the IgnoreStatic method, you should first create an instance of SceneTrace. Then, call the IgnoreStatic method on this instance to configure the trace to ignore static objects. This method can be chained with other configuration methods to further refine the trace behavior.

Example

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

// Further configuration and execution of the trace
trace.FromTo(startPosition, endPosition);
SceneTraceResult result = trace.Run();

// Process the result
if (result.Hit)
{
    // Handle the hit
}