【VRTK】【VR开发】【Unity】15-远程抓取

在这里插入图片描述
课程配套学习资源下载
https://download.csdn.net/download/weixin_41697242/88485426?spm=1001.2014.3001.5503

【背景】

之前的篇章介绍了如何实现直接抓取,本篇介绍另一种抓取方式-远程抓取。

【远程抓取的先决条件】

要让远程抓取起作用,需要先设置oculus提供的手部模型Custom Hand Right,取消激活其下的Grab Volume Big和Grab Volume Small的Capsule Collider。

  1. 在Hierarchy中扩展Oculus-provided Custom Hand Right-》。。。-》Grab Volume Big 和 Grab Volume Small。接着在属性面板分别取消激活这两个对象的Capsule Collider。【VRTK】【VR开发】【Unity】15-远程抓取_第1张图片

【设置远程抓取】

  1. 在Hierarchy中展开VRTK SETUP并创建一个空的子对象,命名为VRTK DISTANCE GRAB。
  2. 点击Project面板,展开Packages-》Tilia Interactions Pointer Interactors Uni

你可能感兴趣的:(VR和Unity游戏开发,vr,unity,游戏引擎)