|
18 | 18 | touch-to-click-converter> |
19 | 19 | <a-assets> |
20 | 20 | <img id="portal-preview" src="../assets/physics.jpg"></img> |
21 | | - <a-mixin id="controller" |
22 | | - vive-controls oculus-touch-controls |
23 | | - windows-motion-controls gearvr-controls daydream-controls |
24 | | - oculus-go-controls |
25 | | - raycaster="showLine: true" |
26 | | - super-hands="colliderEvent: raycaster-intersection; |
27 | | - colliderEventProperty: els; |
28 | | - colliderEndEvent:raycaster-intersection-cleared; |
29 | | - colliderEndEventProperty: clearedEls;"> |
| 21 | + <a-mixin id="pointer" raycaster="showLine: true; objects: .cube, a-link" |
| 22 | + super-hands="colliderEvent: raycaster-intersection; |
| 23 | + colliderEventProperty: els; |
| 24 | + colliderEndEvent:raycaster-intersection-cleared; |
| 25 | + colliderEndEventProperty: clearedEls;"> |
| 26 | + </a-mixin> |
| 27 | + <a-mixin id="controller-right" mixin="pointer" |
| 28 | + vive-controls="hand: right" oculus-touch-controls="hand: right" |
| 29 | + windows-motion-controls="hand: right" |
| 30 | + gearvr-controls daydream-controls oculus-go-controls> |
| 31 | + </a-mixin> |
| 32 | + <a-mixin id="controller-left" mixin="pointer" |
| 33 | + vive-controls="hand: left" oculus-touch-controls="hand: left" |
| 34 | + windows-motion-controls="hand: left"> |
30 | 35 | </a-mixin> |
31 | 36 | <a-mixin id="cube" geometry="primitive: box; width: 0.5; height: 0.5; depth: 0.5" |
32 | 37 | hoverable grabbable stretchable draggable droppable |
|
39 | 44 | </a-mixin> |
40 | 45 | </a-assets> |
41 | 46 | <a-entity> |
42 | | - <a-entity id="rhand" mixin="controller"></a-entity> |
43 | | - <a-entity id="lhand" mixin="controller"></a-entity> |
| 47 | + <a-entity id="rhand" mixin="controller-right"></a-entity> |
| 48 | + <a-entity id="lhand" mixin="controller-left"></a-entity> |
44 | 49 | </a-entity> |
45 | 50 | <a-entity class="cube" mixin="cube" position="0 1 -1.25" material="color: red"></a-entity> |
46 | 51 | <a-entity class="cube" mixin="cube" position="0 1.6 -1.5" material="color: red"></a-entity> |
|
0 commit comments