SceneTrace UsePhysicsWorld( bool hit )

robot_2Generated
code_blocksInput

Description

The UsePhysicsWorld method in the SceneTrace struct is used to specify whether the trace should consider physics objects in the scene. By setting the hit parameter to true, the trace will include physics objects in its calculations. If set to false, physics objects will be ignored during the trace.

Usage

To use the UsePhysicsWorld method, call it on an instance of SceneTrace and pass a boolean value indicating whether to include physics objects in the trace.

Example

// Create a SceneTrace instance
SceneTrace trace = new SceneTrace();

// Configure the trace to include physics objects
trace = trace.UsePhysicsWorld(true);

// Run the trace
SceneTraceResult result = trace.Run();

// Check if the trace hit any physics objects
if (result.Hit)
{
    // Handle the hit
}