This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Режимы вывода изображения
Физика
Браузер SDK 2
Лицензирование и типы лицензий
Дополнения (Add-Ons)
Демонстрационные проекты
API Samples
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
Унифицированный язык шейдеров UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

Unigine::Plugins::TeslaSuitGeneral Class

Warning
The functionality described in this article is not available in the Community SDK edition.
You should upgrade to Sim SDK edition to use it.
Header: #include <plugins/Unigine/TeslaSuit/UnigineTeslaSuit.h>

TeslaSuitGeneral Class

Перечисления (Enums)

CALLBACK_INDEX#

ИмяОписание
MASTER_MULTIPLIER_UPDATE = 0The callback that is invoked when a value of the master multiplier changes.
NUM_CALLBACKS = 1Callback counter.

Members


void setErrorsLog ( bool flag ) #

Enables or disables logging of errors.

Arguments

  • bool flag - true — enable, false — disable

bool isErrorsLog ( ) #

Checks if logging of errors is enabled.

Return value

true — enabled, false — disabled

SuitManager * getSuitManager ( ) #

Returns the SuitManager interface.

Return value

SuitManager interface

String getFullVersion ( ) #

Returns the TESLASUIT API version.

Return value

TESLASUIT API version

String codeToString ( unsigned int code ) #

Returns an ASCII string describing result of a function execution based on passed Result Code of the function.

Arguments

  • unsigned int code - TSP_ code of API functions

Return value

ASCII string describing result of a function execution

Vector< unsigned long long > getConnectedSuits ( ) #

Returns IDs of connected TESLASUITs.

Return value

IDs of connected TESLASUITs

unsigned long long loadAsset ( const String & path, bool isStatic = false, bool isLoop = false, short layer = 0 ) #

Loads and parses a haptic asset in Haptic Player. The loaded asset can be played by given ID.

Arguments

  • const String & path - Path to the haptic asset
  • bool isStatic - Flag that defines whether the asset should be removed after being played
  • bool isLoop - Flag that defines whether the asset playback is looped
  • short layer - Layer of haptic mapping

Return value

Haptic asset ID that is used for further processing

unsigned int removeAsset ( unsigned long long assetId, bool immediately ) #

Removes a haptic asset.

Arguments

  • unsigned long long assetId - ID of a loaded asset
  • bool immediately - if true, the asset is removed immediately; if false, the asset is removed after it has been played

Return value

A code that describes the result of function execution, one of the following TSP_ values: TS_SUCCESS, TS_FAIL_ARG, TS_FAIL_SH_MEM, TS_FAIL_QUEUE_1, TS_FAIL_QUEUE_2.

unsigned long long createMaterial ( unsigned long long playId, unsigned long long effectId ) #

Creates a haptic material from the loaded haptic sample and haptic effect. Haptic materials are used to invoke the haptic response upon the hit events.

Arguments

  • unsigned long long playId - ID of the loaded haptic sample to be used in the haptic material
  • unsigned long long effectId - ID of the loaded haptic effect to be used in the haptic material

Return value

ID of the created haptic material for further processing

unsigned int updateMasterMul ( const TeslaSuitGeneral::MasterMulConf & mul ) #

Sets the new value of the master multiplier for the haptic power that is applied to all connected suits.

Arguments

Return value

A code that describes the result of function execution, one of the following TSP_ values: TS_SUCCESS, TS_FAIL_SH_MEM, TS_FAIL_QUEUE_1, TS_FAIL_QUEUE_2.

TeslaSuitGeneral::MasterMulConf getMasterMultiplier ( unsigned int code ) #

Returns the current value of the master multiplier of the haptic power.

Arguments

  • unsigned int code - A code that describes the result of function execution, one of the following TSP_ values: TS_SUCCESS, TS_FAIL_ARG, TS_FAIL_SH_MEM, TS_FAIL_QUEUE_1, TS_FAIL_QUEUE_2.

Return value

The value of the master multiplier

unsigned int subMasterMultiplierUpdate ( ) #

Creates the subscription to the master multiplier updates.

Return value

A code that describes the result of function execution, one of the following TSP_ values: TS_SUCCESS, TS_FAIL_STARTED, TS_FAIL_ARG, TS_FAIL_SH_MEM, TS_FAIL_QUEUE_1, TS_FAIL_QUEUE_2.

bool isServiceRunning ( ) #

Returns teslasuit.service status.

Return value

true, if the service is running, false, if the service is stopped

bool serviceStart ( ) #

Starts teslasuit.service.

Return value

true, if the service is started, otherwise false

bool serviceStop ( ) #

Stops teslasuit.service.

Return value

true, if the service is stopped, otherwise false

bool serviceRestart ( ) #

Restarts teslasuit.service.

Return value

true, if the service is restarted, otherwise false
Last update: 16.08.2024
Build: ()