Unigine::ObjectIntersection Class
Header: | #include <UnigineObjects.h> |
ObjectIntersection Class
Enums
TYPE#
Name | Description |
---|---|
OBJECT_INTERSECTION = 0 | |
OBJECT_INTERSECTION_NORMAL = 1 | |
OBJECT_INTERSECTION_TEX_COORD = 2 | |
NUM_OBJECT_INTERSECTIONS = 3 |
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:
2020-07-31
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)