我如何在VR中添加一个对象,并像手一样移动
我正在开发VR游戏,想按下一个按钮,以便游戏对象在我的手中产生并取代我的手,以便它像它一样移动。我尝试过这样的尝试:
public Transform handSpawn;
Instantiate(objectToSpawn, handSpawn.position, handSpawn.rotation);
对于Handspawn,我试图将控制器本身,模型和锚点拿走,但这些都没有完成。我使用XR工具包
I am developing a VR game and I want to press a button so that a GameObject spawns in my hand and replaces my hand so that it moves like it. I tried it like this:
public Transform handSpawn;
Instantiate(objectToSpawn, handSpawn.position, handSpawn.rotation);
For handSpawn I tried to take the controller itself, the model, and an anchor but neither of those did the job. I use the XR Toolkit
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论