PhysicsTraceBuilder WithoutTags( ITagSet tags )

robot_2Generated
code_blocksInput

Description

The WithoutTags method in the PhysicsTraceBuilder class allows you to exclude specific tags from the physics trace. This is useful when you want to ignore certain objects or categories of objects during a trace operation.

Usage

To use the WithoutTags method, call it on an instance of PhysicsTraceBuilder and pass an array of strings representing the tags you want to exclude from the trace. This method returns the modified PhysicsTraceBuilder instance, allowing for method chaining.

Example

// Example of using WithoutTags method
PhysicsTraceBuilder traceBuilder = new PhysicsTraceBuilder();
traceBuilder = traceBuilder.WithoutTags(new string[] { "Player", "NPC" });

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

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