DHART
Loading...
Searching...
No Matches
DHARTAPI.RayTracing.RayResult Struct Reference

MeshID and Distance for a casted ray. More...

Public Member Functions

override string ToString ()
 Get a string representation of this ray result. More...
 

Public Attributes

float distance
 Distance from origin to the point of intersection. -1 if missed.
 
Int32 mesh_id
 ID of the mesh intersected. -1 if missed.
 

Detailed Description

MeshID and Distance for a casted ray.

Remarks
Used for returning large amounts of results from the raytracer.

Member Function Documentation

◆ ToString()

override string DHARTAPI.RayTracing.RayResult.ToString ( )

Get a string representation of this ray result.

Returns
The ID and distance of this rayresult as a formatted string

The documentation for this struct was generated from the following file: