Unigine.ObjectIntersection Class
ObjectIntersection Class
Enums
TYPE#
Name | Description |
---|---|
OBJECT_INTERSECTION = 0 | ObjectIntersection (stores only the point of intersection, surface and triangle indices). |
OBJECT_INTERSECTION_NORMAL = 1 | ObjectIntersectionNormal (stores the point of intersection, surface and triangle indices + normal coordinates at the point of intersection). |
OBJECT_INTERSECTION_TEX_COORD = 2 | ObjectIntersectionTexCoord (stores the point of intersection, surface and triangle indices + normal and texture coordinates at the point of intersection). |
NUM_OBJECT_INTERSECTIONS = 3 | Number of object intersection types. |
Properties
int Instance#
The number of the intersected instance.
Intersected instance number can be obtained for the following classes:
int Index#
The number of the intersected triangle.
vec3 Point#
The Coordinates of the intersection point.
string TypeName#
The Object intersection type name.
ObjectIntersection.TYPE Type#
The Object intersection type identifier.
Members
ObjectIntersection ( ) #
The ObjectIntersection constructor.Last update:
2022-12-14
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)