问题
Can anyone tell me how to setup wall colliders? I have setup a room using OBJ files for the walls. Many thanks.
回答1:
Take a look at the source code for Don McCurdy's "Walls" example: https://sandbox.donmccurdy.com/vr/walls/
Note the addition of the physics component in the a-scene element. This is what gets the magic going.
You need to include the aframe-extras script along with aframe.
回答2:
kinematic-body.js
is deprecated.
Don McCurdy encourages the use of teleportation
See this post too: Move camera in aframe with physics engine
来源:https://stackoverflow.com/questions/40625998/a-frame-how-to-setup-wall-colliders