jgbarah / aframe-playground

A playground for learning about A-frame
http://jgbarah.github.io/aframe-playground
GNU General Public License v3.0
76 stars 47 forks source link

Kinema with deeper child camera object #1

Open riebling opened 3 years ago

riebling commented 3 years ago

I'm loving the ability to have Kinema make camera somewhat follow physics, movement being blocked by objects. But I think I might have something wrong that's causing the location where the same object's camera stop location - to change.

Is it possible that Kinema as a CameraRig with another child object before the camera gets the camera's collision location wrong? For example CameraSpinner:

    <a-entity kinema-body="radius: 0.8" movement-controls="fly: false; speed: 0.3" position="0 0 0" id="CameraRig">
      <a-entity position="0 0 0" id="CameraSpinner" name="PerspectiveCamera" tag="MainCamera">
        <a-entity camera id="my-camera" far="10000" near="0.1" wasd-controls="enabled: false" look-controls="reverseMouseDrag: true" look-controls-arrow pose-listener mouse-cursor press-and-move network-latency>
        </a-entity>
     </a-entity>
   </a-entity>

Trying to figure this on my own but realized might be able to ask for your help or advice :)