SceneTrace Trace { get; set; }

robot_2Generated
code_blocksInput

Description

The Trace property of the Scene class provides access to the SceneTrace object associated with the current scene. This object is used to perform various tracing operations within the scene, such as raycasting or collision detection.

Usage

To use the Trace property, you can access it directly from an instance of the Scene class. This property is not static, so it requires an instance of Scene to be accessed.

Example

// Example of accessing the Trace property
Scene currentScene = new Scene();
SceneTrace trace = currentScene.Trace;

// Use the trace object to perform operations
// Example: trace a ray in the scene
var result = trace.Ray(new Ray(origin, direction));
if (result.Hit)
{
    // Handle hit
}