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 |
Int32 face_id |
The polygon index of the intersection point.
Int32 tri_face_id |
If first half of quad or triangle face_id + 1 , else -( face_id + 1 ).
向量 hitpos |
The position of the intersection.
Float distance |
The distance to the intersection.
向量 s_normal |
Same as f_normal. (reserved for phong normal at the intersection (Not normalized))
向量 f_normal |
The face normal. (Not normalized)
向量 barrycoords |
The barycentric coordinates of the intersection. (x = u, y = v, z = d)
Bool backface |
true if the intersected face's normal points away from the camera, otherwise false .