Unigine::ObjectIntersection Class
Header: | #include <UnigineObjects.h> |
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. |
Members
static ObjectIntersectionPtr create ( ) #
The ObjectIntersection constructor.void setIndex ( int index ) #
Sets the new intersection triangle number.Arguments
- int index - Intersection triangle number.
int getIndex ( ) const#
Returns the number of the intersected triangle.Return value
Intersected triangle number.void setInstance ( int instance ) #
Sets the new intersected instance number.Intersected instance number can be obtained for the following classes:
Arguments
- int instance - Intersected instance number.
int getInstance ( ) const#
Returns the number of the intersected instance.Intersected instance number can be obtained for the following classes:
Return value
Intersected instance number.void setPoint ( const Math::Vec3 & point ) #
Sets new coordinates of the intersection point.Arguments
- const Math::Vec3 & point - Coordinates of the intersection point.
Math::Vec3 getPoint ( ) const#
Returns coordinates of the intersection point.Return value
Coordinates of the intersection point.ObjectIntersection::TYPE getType ( ) const#
Returns the object intersection type identifier.Return value
Object intersection type identifier.const char * getTypeName ( ) const#
Returns the object intersection type name.Return value
Object intersection type name.Last update:
2024-12-13
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)