webvr

Move camera in aframe with physics engine

时光怂恿深爱的人放手 提交于 2019-11-28 05:43:12
问题 I am using a physics engine in my aframe application, and I want the camera to move when the user clicks a button. I want to keep the physics engine properties so I am using applyImpulse as a method for motion. Here is my example scene: <script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script> <script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v2.3.0/dist/aframe-extras.min.js"></script> <a-scene physics> <!-- Camera --> <a-entity id="cameraWrapper" geometry="box" dynamic-body