Struct DistanceInfo#

Struct Documentation#

struct DistanceInfo#

Struct of info for a distance query result.

Public Members

float distance#

distance: nearest distance between the two objects

Karana::Math::Vec3 nearest1#

nearest1: nearest point on the first object

Karana::Math::Vec3 nearest2#

nearest2: nearest point on the second object

Public Static Functions

static DistanceInfo &singleton()#

Get a global instance with static lifetime.

Returns:

The global DistanceInfo instance.