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);
相关推荐
xhyyvr1 天前
“电”击预警!VR跨步电压安全体验系统
vr·vr公共安全·vr公共安全体验馆
在路上看风景2 天前
1.2 Unity资源分类
unity·游戏引擎
one named slash2 天前
BMFont在Unity中生成艺术字
unity·游戏引擎
Axis tech2 天前
TechViz VR解决方案:增强沉浸式设计评审与演示的技术革新
vr
郝学胜-神的一滴2 天前
图形学中的纹理映射问题:摩尔纹与毛刺的深度解析
c++·程序人生·unity·游戏引擎·图形渲染·unreal engine
在路上看风景2 天前
10. CPU-GPU协作渲染
unity
程序员agions2 天前
Unity 游戏开发邪修秘籍:从入门到被策划追杀的艺术
unity·cocoa·lucene
JIes__2 天前
Unity(一)——场景切换、退出游戏、鼠标隐藏锁定...
unity·游戏引擎
NIKITAshao2 天前
Unity URP Volume组件详解(笔记)
unity·游戏引擎
lingxiao168882 天前
WebApi详解+Unity注入--下篇:Unity注入
unity·c#·wpf