A形框架:如何设置墙壁对撞机 [英] A-frame: How to setup wall colliders

查看:77
本文介绍了A形框架:如何设置墙壁对撞机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我如何设置对撞机?我已经设置了一个使用OBJ文件作为墙壁的房间。非常感谢。

Can anyone tell me how to setup wall colliders? I have setup a room using OBJ files for the walls. Many thanks.

推荐答案

看看Don McCurdy的 Walls示例的源代码:
https://sandbox.donmccurdy.com/vr/walls/

Take a look at the source code for Don McCurdy's "Walls" example: https://sandbox.donmccurdy.com/vr/walls/

请注意在a-场景元素中添加了物理组件。

Note the addition of the physics component in the a-scene element. This is what gets the magic going.

您需要将aframe-extras脚本与aframe一起包含。

You need to include the aframe-extras script along with aframe.

这篇关于A形框架:如何设置墙壁对撞机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆