IntersectHitData Struct Reference

#include <lib_intersect.h>

Detailed Description

Public Attributes

Vector localHitPoint
 
Vector32 localHitNormal
 
Int32 selectedPolygon
 
Float distance
 
Bool backface
 
PolygonObjectpObject
 

Member Data Documentation

◆ localHitPoint

Vector localHitPoint

The location of the hit point on the surface of the object in the object's local coordinate system.

◆ localHitNormal

Vector32 localHitNormal

The normal of the hit point on the surface of the object in the object's local coordinate system.

◆ selectedPolygon

Int32 selectedPolygon

The polygon that was hit.

◆ distance

Float distance

The distance from the ray starting position in object space.

◆ backface

Bool backface

true if the hit polygon is a backfacing polygon, otherwise false.

◆ pObject

PolygonObject* pObject

The polygon object that was hit.