This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm
使用编辑器工具执行特定任务
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
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
Rendering-Related Classes
创建内容
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

CigiPositionRequest 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/UnigineCIGIConnector.h>
Inherits from: CigiHostPacket

CigiPositionRequest Class

Members


int getObjectID ( ) const#

Returns the Object ID specified in the packet.

Return value

Object ID. The following ranges of values are supported depending on Object Class:
  • [0; 65535] - If Object Class is in the [0; 2] range.
  • [1; 255] - If Object Class=3.
  • [0; 255] - If Object Class=4.

int getPartID ( ) const#

Returns the value of the Articulated Part ID parameter specified in the packet. Identifies the articulated part whose position is being requested.

Return value

Articulated Part ID.

int getUpdateMode ( ) const#

Returns the value of the Update Mode parameter specified in the packet. Determines whether the IG will report the position of the requested object each frame.

Return value

Update Mode parameter value. The following values are supported:
  • 0 - One-Shot.
  • 1 - Continuous.

int getObjectClass ( ) const#

Returns the value of the Object Class parameter specified in the packet. Indicates the type of object whose position is being requested.

Return value

Object Class parameter value. The following values are supported:

int getCoordSystem ( ) const#

Returns the value of the Coordinate System parameter specified in the packet. Determines the desired coordinate system relative to which the position and orientation will be given.

Return value

Coordinate System parameter value. The following values are supported:
  • 0 - Geodetic. Position shall be specified as a geodetic latitude, longitude, and altitude. Orientation shall be given with respect to the reference plane.
  • 1 - Parent Entity. Position and orientation shall be with respect to the entity to which the specified entity or view is attached. This value shall be invalid for top-level entities.
  • 2 - Submodel. Position and orientation shall be specified with respect to the articulated part’s reference coordinate system. This value shall be valid only when Object Class is set to Articulated Part (1).
Notice
If Object Class is set to Motion Tracker (4), the coordinate system is defined by the tracking device and this parameter
Last update: 2021-12-13
Build: ()