IntersectHitData Struct Reference Library » Intersect

#include <lib_intersect.h>

详细描述

Intersection hit data structure for:

Public Attributes

向量   localHitPoint
Vector32   localHitNormal
Int32   selectedPolygon
Float   distance
Bool   backface
PolygonObject pObject

Member Data Documentation

◆  localHitPoint

向量 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.