PhysicsTraceBuilder IgnoreDynamic()

robot_2Generated
code_blocksInput

Description

The IgnoreDynamic method of the PhysicsTraceBuilder class is used to configure a physics trace to ignore dynamic objects. Dynamic objects are those that can move or be moved by physics forces. By calling this method, you can ensure that the trace will not consider these objects when determining collisions or intersections.

Usage

To use the IgnoreDynamic 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 IgnoreDynamic in a physics trace
PhysicsTraceBuilder traceBuilder = new PhysicsTraceBuilder();
traceBuilder.IgnoreDynamic();

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

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