This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Полезные советы
Программирование на C#
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров узла
Setting Up Materials
Setting Up Properties
Освещение
Landscape Tool
Sandworm (Experimental)
Использование инструментов редактора для конкретных задач
Extending Editor Functionality
Встроенные объекты
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
UnigineScript
C++
C#
Унифицированный язык шейдеров UUSL
File Formats
Rebuilding the Engine Tools
GUI
Двойная точность координат
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
Работа с контентом
Оптимизация контента
Материалы
Art Samples
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

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 = 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.
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: 24.11.2020
Build: ()