unity-game-engine - 使用第一人称 Controller 脚本在纸板中前进

标签 unity-game-engine google-cardboard

如何在Google Cardboard中添加第一人称角色 Controller ,使其连续方向前进? 我知道这是一个愚蠢的问题,但因为我是新人,实际上几个小时前才制作了一个简单的纸板游戏。我不知道如何将第一人称 Controller 脚本添加到我的谷歌纸板游戏中?

最佳答案

这是来自 github 的 AutoWalk.cs 脚本,我个人用它来让我的角色行走。该脚本通过简单的头部倾斜或磁铁触发器使相机(和绑定(bind)的角色)向前移动。 https://github.com/JuppOtto/Google-Cardboard/blob/master/Autowalk.cs

NOTE: The code in github is for Google Cardboard SDK. So you will have to modify it a little bit if you want to make it compatible to the latest Google VR SDK (few variable name changes).

不过,这是我在等待 Google 发布 DayDream 时建议的临时修复

关于unity-game-engine - 使用第一人称 Controller 脚本在纸板中前进,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37458861/

相关文章:

android - Cardboard SDK 将 VRVideoView 初始化为全屏和 VR 模式(分屏)

firebase - Cloud Firestore Unity SDK 转换器

ios - 适用于 IOS 的 Unity IAP — 未找到应用程序收据

android - 使用 Google Cardboard 改进 Android 上的头部追踪

安卓 VR View : Converting mono 360 photo

android - 使用 VrVideoView 加载 360 度 Youtube 视频

c# - Android & Unity3D - 函数调用转到错误的线程

android - 如何在 unity3d 中调用数据库中的项目?

c# - 使用来自 json 的变量 - Google play games quests

ios - 如何允许 IOS 13 上的浏览​​器访问我的 iPhone 6s 陀螺仪?