VRTK/SteamVR手柄震动功能

VRTK/SteamVR手柄震动功能

前言

手柄震动功能配合虚拟仿真模块的模拟电击等功能非常方便

代码块

SteamVR_Controller.DeviceRelation.Rightmost是右侧手柄

SteamVR_Controller.DeviceRelation.Leftmost是左侧手柄

csharp 复制代码
    var deviceIndex2 = SteamVR_Controller.GetDeviceIndex(SteamVR_Controller.DeviceRelation.Rightmost);
            SteamVR_Controller.Input(deviceIndex2).TriggerHapticPulse(5000);
            var deviceIndex1 = SteamVR_Controller.GetDeviceIndex(SteamVR_Controller.DeviceRelation.Leftmost);
            SteamVR_Controller.Input(deviceIndex1).TriggerHapticPulse(5000);
相关推荐
nnsix17 小时前
Unity Physics.Raycast的 QueryTriggerInteraction枚举作用
unity·游戏引擎
地狱为王18 小时前
Cesium for Unity叠加行政区划线
unity·gis·cesium
测试人社区—03921 天前
UI测试在DevOps流水线中的卡点设计:质量保障的智能防线
运维·驱动开发·测试工具·ui·ar·vr·devops
小贺儿开发1 天前
Unity3D 八大菜系连连看
游戏·unity·互动·传统文化
在路上看风景1 天前
25. 屏幕像素和纹理像素不匹配
unity
ۓ明哲ڪ1 天前
Unity功能——创建新脚本时自动添加自定义头注释
unity·游戏引擎
熬夜敲代码的小N1 天前
Unity大场景卡顿“急救包”:从诊断到落地的全栈优化方案
java·unity·游戏引擎
晴天¥1 天前
本地环境安装部署Oracle Rac集群(双节点)
vr
派葛穆1 天前
Unity-realvirtual-S7通讯快速配置(未完结)
unity·游戏引擎
Axis tech1 天前
使用VR触觉手套进行更安全的飞机货物舱门操作培训
vr