← 返回首页
更新日志 2.1.1
依赖关系
- 更新时间:haply-inverse-c.dll版本 2.1.1(需要Inverse SDK >= 2.1)
- 更新时间:Haply.Inverse.dll版本 2.1.1
- 已添加:com.unity.xr.core-utils版本 2.3.0
警告
已停止支持2022.1.0f1之前的 Unity 版本。 如果遇到兼容性问题,请更新到较新版本。
不兼容的更改
- Inverse3 以及 VerseGrip übergeben
device作为事件的第一个参数ConnectionStateChangedConnectionStateChanged(state, prevState)>ConnectionStateChanged(device, state, prevState)ConnectionStateChangedAsync(state, prevState)>ConnectionStateChangedAsync(device, state, prevState)
- 该属性
Statevon DeviceMapper 现已设为只读。
新功能
- Inverse3Body 组件将Inverse3 设备的物体方向应用到指定的 GameObject 上。
- Inverse3:
- 显示设备数据(Inspector)
ControlMode以及最近发送到该设备的数值Force,Positionoder简体中文(大陆)Anglesan. JointsAnglesundJointsAngularVelocity.Powered指示设备当前是否通电。- “Unity”活动
PowerSupplyStatusChanged一旦电源状态发生变化,该功能就会被触发。 Orientation返回Inverse3 设备的当前方向。- 那件事
OrientationChangedAsync一旦身体姿势发生变化,该功能就会被触发。 RequestOrientation()手动请求身体对齐。ControlMode返回当前的控制模式(CursorForce、CursorPosition、JointsTorques、JointsAngles)。- “Unity”活动
ControlModeChanged一旦控制模式发生变化,该功能就会被触发。 ForceOutput,PositionOutput,JointsTorqueOutputundJointsAnglesOutput提供最新一期。Release()通过发送零力来重置设备控制(替换TryResetForce()).CoordinateConverter用于通过预设文件或直接输入数值来定义坐标转换。ErrorEvent当 ClientConnection 针对某个已关联的设备发生错误事件时,该事件将在主线程中触发。
- 显示设备数据(Inspector)
- VerseGrip:
CoordinateConverter用于通过预设文件或直接输入数值来定义坐标转换。ErrorEvent当 ClientConnection 针对某个已关联的设备发生错误事件时,该事件将在主线程中触发。
- 设备映射器:
- 在运行时分配已连接的设备。
- 访问Inverse3 ,查看每款Inverse3 设备的电源和机身朝向信息。
- 莫迪·冯
DeviceInfoPollingMode:Manual,Once(标准) 或Continuous devicesInfoPollDelay具有可靠的最小值1sec,如果需要身体朝向,否则0.5sec.- 仅在组件被激活时才进行初始化。
- 筛选后的设备获取器:
GetInverse3Devices(handedness)调用Inverse3 获取根据指定手性过滤后的设备。GetVerseGripDevices(handedness)检索与Inverse3 设备配对且符合 指定手性要求的VerseGrip设备。GetInverse3(handedness)检索第一个符合指定惯用手设置的Inverse3 设备。GetInverse3(verseGrip)调用与特定 VerseGrip 设备关联的Inverse3 设备。GetVerseGrip(inverse3)调用与指定的Inverse3 设备关联的VerseGrip设备。
- 已将OrientationSettings添加到 VerseGripCursor 和 Inverse3Body 组件中。
VerseGrip.Orientation替换VerseGrip.LocalRotation.- Expliziter 逆 3D数据-Inverse3 的缓存类型:
- 缓存状态的特性:
CursorPosition,JointsAngles,JointsAngularVelocity,Orientation, GravityCompensation,StatusPowerSupply,ConfigTorqueScaling- 缓存的税务支出特征:
ControlMode,CursorForceOutput,CursorPositionOutput,JointsTorqueOutput,JointsAnglesOutput. coordinateConverter用于将接收和发送的数据转换为指定的坐标系。- 缓存订阅了客户端,以便自动更新。
- 缓存更新时会触发事件。
- 缓存状态的特性:
- Expliziter
Joint3-包含三个 float 成员的结构体j0,j1undj2(由JointsSetTorqueundJointsSetAngles). - Expliziter VerseGripData-VerseGrip 缓存的字体:
- 缓存状态的特性:
Orientation,IsAttached,ButtonCount. - 已缓存的按键状态。
- 缓存订阅了客户端,以便自动更新。
coordinateConverter用于将接收到的数据转换为指定的坐标系。- 缓存更新时会触发事件。
- 缓存状态的特性:
- 坐标转换器 (替换为
UnityConvert),以单独指定如何将设备的坐标系转换为 Unity坐标系:Inverse3CoordinateConverter用于转换光标坐标和物体方向。VerseGripCoordinateConverter用于转换VerseGrip的对齐方式。Vector3Settings- 以及QuaternionSettings-用于存储坐标转换设置的结构体。- 通过“组件”或“资源”菜单,为Inverse3 和VerseGrip的坐标转换器创建标准预设。
- Inverse3 (手臂向前姿势)转换器,适用于手臂朝向用户且LED图标位于 侧面的设备。
- Inverse3 转换器(图标前倾姿势),适用于LED图标朝向用户且手臂位于 身体一侧的设备。
- VerseGrip转换器(标准版),适用于屏幕朝前且输入键位于顶部的设备。
- 客户端连接 erhält
FirmwareVersion,GravityCompensationundTorqueScaling, 只要设备一打开。 - 连接监控器 显示
GravityCompensation,TorqueScalingundPowerSupplyan.
错误修复
Inverse3.DeviceStateChanged也被错误地用于JointsSetTorqueundJointsSetAngles触发。- 设备断开连接后自动重新连接。
- 在构建结束时清理客户端轮询线程。
- 已修复错误并提高了稳定性。
- 修复了场景加载/卸载后设备分配的问题
已过时
ClientConnection.Configuration.HapticFrequencyHz由……引起HapticPollFrequency替换ClientConnection.Configuration.PollDelayNs由……引起HapticPollDelayNs替换DeviceBehaviour.ConnectionStateChangedAsync将在下一个主要版本中移除Inverse3.Position由……引起Inverse3.CursorPosition替换Inverse3.LocalPosition由……引起Inverse3.CursorLocalPosition替换Inverse3.TryResetForce()由……引起Release()替换VerseGrip.LocalRotation由……引起VerseGrip.Orientation替换JointsSetTorque(Vector3)由……引起JointsSetTorques(Joint3)替换JointsSetTorque(float, float, float)由……引起JointsSetTorques(float, float, float)替换JointsSetAngles(Vector3)由……引起JointsSetAngles(Joint3)替换
← 返回首页