Struct RaycastHit

Represents the result of a raycast intersection test.

struct RaycastHit

Represents the result of a raycast intersection test.

If didHit is true, point, normal, distance, and hitObjectId will contain valid data about the intersection. If didHit is false, the ray did not intersect

Public Members

fm_vec3_t point = {}
fm_vec3_t normal = {}
float distance = {std::numeric_limits<float>::max()}
uint16_t hitObjectId = {0}
bool didHit = {false}