working example with non visible code

bind-jxr-target
Fabien Benetou 2 years ago
parent 51fc1d860f
commit f67d8d1301
  1. 4
      index.html

@ -3470,7 +3470,7 @@ AFRAME.registerComponent('startfunctions', {
<a-box pressable start-on-press id="box" scale="0.05 0.05 0.05" color="pink"> <a-box pressable start-on-press id="box" scale="0.05 0.05 0.05" color="pink">
<a-entity collider-check raycaster="objects: .collidable; showLine:true;" ></a-entity> <a-entity collider-check raycaster="objects: .collidable; showLine:true;" ></a-entity>
</a-box> </a-box>
<!-- could attach functions here... BUT then they have to be activable with the other hand! --> <!-- could attach functions here... BUT then they have to be activable with the other hand! -->
<!-- visual reminders of shortcuts, a poster on the far left/right of keyboard shortcuts --> <!-- visual reminders of shortcuts, a poster on the far left/right of keyboard shortcuts -->
@ -3507,6 +3507,8 @@ AFRAME.registerComponent('startfunctions', {
<a-box target position="0 1.65 -0.5" scale="0.01 0.01 0.01"></a-box> <a-box target position="0 1.65 -0.5" scale="0.01 0.01 0.01"></a-box>
<a-gltf-model target id="bottle" scale=".1 .1 .1" value="jxr tiltUpId('bottle')" src="../content/WaterBottle.glb" position="0 1 -0.4"></a-gltf-model>
<a-troika-text anchor=left target ondrop="setNearbyEditor(el)" <a-troika-text anchor=left target ondrop="setNearbyEditor(el)"
value="https://webdav.benetou.fr/fot-demo-day/mobydick-extract.txt" value="https://webdav.benetou.fr/fot-demo-day/mobydick-extract.txt"
position=" -0.3 1.65 -.4" rotation="0 90 0" scale="0.1 0.1 0.1"></a-troika-text> position=" -0.3 1.65 -.4" rotation="0 90 0" scale="0.1 0.1 0.1"></a-troika-text>

Loading…
Cancel
Save