gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 07:10:13 24 4
gpt4 key购买 nike

如何在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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com