GeRayColResult Struct Reference Library » Collider

#include <lib_collider.h>

详细描述

Stores the result of calculations with GeRayCollider .

Public Attributes

Int32   face_id
Int32   tri_face_id
向量   hitpos
Float   distance
向量   s_normal
向量   f_normal
向量   barrycoords
Bool   backface

Member Data Documentation

◆  face_id

Int32 face_id

The polygon index of the intersection point.

◆  tri_face_id

Int32 tri_face_id

If first half of quad or triangle face_id + 1 , else -( face_id + 1 ).

◆  hitpos

向量 hitpos

The position of the intersection.

◆  distance

Float distance

The distance to the intersection.

◆  s_normal

向量 s_normal

Same as f_normal. (reserved for phong normal at the intersection (Not normalized))

◆  f_normal

向量 f_normal

The face normal. (Not normalized)

◆  barrycoords

向量 barrycoords

The barycentric coordinates of the intersection. (x = u, y = v, z = d)

◆  backface

Bool backface

true if the intersected face's normal points away from the camera, otherwise false .