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 physics objects should be included in the trace.
Example
SceneTrace trace = new SceneTrace();
trace.UsePhysicsWorld(true); // Include physics objects in the trace
trace.UsePhysicsWorld(false); // Ignore physics objects in the trace