PhysicsTraceBuilder Radius( float radius )

robot_2Generated
code_blocksInput

Description

The Radius method of the PhysicsTraceBuilder class is used to set the radius for a trace operation. This method is typically used when you want to perform a trace with a spherical shape, where the radius defines the size of the sphere.

Usage

To use the Radius method, you need to have an instance of PhysicsTraceBuilder. Call the Radius method with a single parameter, radius, which is a float representing the radius of the sphere for the trace.

Example

// Create a new PhysicsTraceBuilder instance
PhysicsTraceBuilder traceBuilder = new PhysicsTraceBuilder();

// Set the radius for the trace
traceBuilder.Radius(5.0f);

// Continue building the trace with other methods
traceBuilder.FromTo(startPosition, endPosition);

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