This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Unigine::ObjectIntersection Class

Header: #include <UnigineObjects.h>

This class is used to store the result of the object intersection (coordinates of the intersection point, as well as surface and instance indices).

ObjectIntersection Class

Enums

TYPE#

NameDescription
OBJECT_INTERSECTION = 0ObjectIntersection (stores only the point of intersection, surface and triangle indices).
OBJECT_INTERSECTION_NORMAL = 1ObjectIntersectionNormal (stores the point of intersection, surface and triangle indices + normal coordinates at the point of intersection).
OBJECT_INTERSECTION_TEX_COORD = 2ObjectIntersectionTexCoord (stores the point of intersection, surface and triangle indices + normal and texture coordinates at the point of intersection).
NUM_OBJECT_INTERSECTIONS = 3Number 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.
Notice
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.
Notice
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: 2021-09-17
Build: ()