The WithTag
method of the PhysicsTraceBuilder
class allows you to specify a tag that should be associated with the trace. This can be useful for categorizing or filtering traces based on specific identifiers.
The WithTag
method of the PhysicsTraceBuilder
class allows you to specify a tag that should be associated with the trace. This can be useful for categorizing or filtering traces based on specific identifiers.
To use the WithTag
method, call it on an instance of PhysicsTraceBuilder
and pass a StringToken
representing the tag you want to associate with the trace. This method returns the same PhysicsTraceBuilder
instance, allowing for method chaining.
// Example of using WithTag method PhysicsTraceBuilder traceBuilder = new PhysicsTraceBuilder(); StringToken tag = new StringToken("exampleTag"); traceBuilder.WithTag(tag); // Continue building the trace traceBuilder.Sphere(1.0f, ref startPosition, ref endPosition).Run();