This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
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
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Unigine.ObjectIntersection Class

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 = 0
OBJECT_INTERSECTION_NORMAL = 1
OBJECT_INTERSECTION_TEX_COORD = 2
NUM_OBJECT_INTERSECTIONS = 3

Properties

int Instance#

The number of the intersected instance.
Notice
Intersected instance number can be obtained for the following classes:
set
Sets the new intersected instance number.
Notice
Intersected instance number can be obtained for the following classes:
set value - Intersected instance number.

int Index#

The number of the intersected triangle.
set
Sets the new intersection triangle number.
set value - Intersection triangle number.

vec3 Point#

Coordinates of the intersection point.
set
Sets new coordinates of the intersection point.
set value - Coordinates of the intersection point.

string TypeName#

Object intersection type name.

WorldIntersection.TYPE Type#

Members


static ObjectIntersection ( ) #

The ObjectIntersection constructor.

WorldIntersection.TYPE GetType ( ) #

Returns the object intersection type identifier.

Return value

Object intersection type identifier.

string GetTypeName ( ) #

Returns the object intersection type name.

Return value

Object intersection type name.
Last update: 2020-04-10
Build: ()