Struct RayHit

Struct Documentation

struct RayHit

Result of a raycast against the NavMap.

All fields are valid only when hit is true.

Public Members

bool hit = {false}

True if the ray hit any triangle.

size_t surface = {0}

Index of surface hit.

NavCelId cid = {0}

Id of the NavCel hit.

float t = {0.0f}

Distance along the ray (units of Ray::d)

Eigen::Vector3f p

World coordinates of intersection.