Aframe Cursor искажен - PullRequest
       22

Aframe Cursor искажен

0 голосов
/ 28 июня 2018

когда я вхожу в Vr-режим на мобильном телефоне, вы получаете курсор для взаимодействия. Теперь моя проблема с курсором искажена. Когда я перемещаю линзы моих виртуальных очков, я могу сделать курсор равным единице, но тогда моя сцена больше не верна. Вот моя камера с моим курсором:

  <!--------camera---------->    
<a-entity rotation="0 90 0">
  <a-camera user-height="0" wasd-controls-enabled="false" look-controls>
    <a-cursor id="curseid" visible="false" opacity="0" fuse="true" fusetimeout="4000"
      position="0 0 -0.1"
      raycaster="objects: .clickable"
      geometry="primitive: ring;
      radiusInner: 0.002;
      radiusOuter: 0.003"
      material="color: red; shader: flat">
      <a-animation attribute="scale"
                      to="3 3 3"
                      dur="2000"
                      begin="cursor-fusing"
                      fill="backwards"
                      easing="linear">
      </a-animation>
      <a-animation attribute="material.opacity" begin="fade" to="0"></a-animation>
      <a-animation attribute="material.opacity" begin="fade_cursor" dur="2000" from="0" to="1"></a-animation>
   </a-cursor>
    <a-entity id="redcircle" visible="false" position="0 0 -0.1" 
            geometry="primitive: ring;
            radiusInner: 0.007;
            radiusOuter: 0.0077"
            material="color: red; opacity: 0; shader: flat">
     <a-animation attribute="material.opacity" begin="fade" to="0"></a-animation>
    <a-animation attribute="material.opacity" begin="fade_circle" dur="2000" from="0" to="0.25"></a-animation></a-entity>
 </a-camera>  
</a-entity>  

1 Ответ

0 голосов
/ 28 июня 2018

Курсор - это способ закрыть камеру, я установил его на z: -1, и теперь его отлично

...