PhysicsTraceBuilder IgnoreStatic()

robot_2Generated
code_blocksInput

Description

The IgnoreStatic method of the PhysicsTraceBuilder class is used to configure a physics trace 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 consider these static objects as potential hits, which can be useful for optimizing performance or focusing on dynamic interactions.

Usage

To use the IgnoreStatic method, you need to have an instance of PhysicsTraceBuilder. Call the method on this instance to modify the trace configuration. This method returns the same PhysicsTraceBuilder instance, allowing for method chaining.

Example

// Example of using IgnoreStatic in a physics trace
PhysicsTraceBuilder traceBuilder = new PhysicsTraceBuilder();
traceBuilder.IgnoreStatic();

// Continue configuring the trace
traceBuilder.FromTo(startPosition, endPosition);

// Run the trace
PhysicsTraceResult result = traceBuilder.Run();