<script src="https://ensaama-officiel-numerique.github.io/components/detect/detect.js"></script>
trace: { type: 'boolean', default: false}
<a-text id="txtlog" value="" align="center" color="#FF0000"
position="0 0 -1" rotation="0 0 0" scale="0.25 0.25 0.25">
</a-text>
log: { type: 'boolean', default: false},
delay: { type: 'number', default: 1000 }
<a-scene frequency="delay: 500;"></a-scene>
let player = { pos: { x: 0, y: 0, z: 0 },
left: { x: 0, y: 0, z: 0 },
right: { x: 0, y: 0, z: 0 },
}
trace: { type: 'boolean', default: false}
<a-entity camera currentposition="trace: true;"></a-entity>
let player = { pos: { x: 0, y: 0, z: 0 } }
console.log(player.pos.x);
trace: { type: 'boolean', default: false },
seuils: { type: 'array', default: [1]},
<a-box id="boite" position="1 0 -2" rotation="0 45 0" color="silver"
width="0.25" height="0.25" depth="0.25"
proximity="trace: true; seuils: 0.5, 1, 2">
</a-box>
trace: { type: 'boolean', default: false },
seuils: { type: 'array', default: [1]},
<a-box id="boite" position="1 0 -2" rotation="0 45 0" color="silver"
width="0.25" height="0.25" depth="0.25"
head-height="trace: true; seuils: 0.5, 1, 1.5">
</a-box>
trace: { type: 'boolean', default: false},
left: { type: 'string', default: 'gauche' },
right: { type: 'string', default: 'droite' }
<a-entity camera handsposition="trace: true;"></a-entity>
trace: { type: 'boolean', default: false },
seuils: { type: 'array', default: [1]},
state: { type: 'string', default: '0' },
side: { type: 'string', default: 'right'}
<a-box id="boite" position="1 0 -2" rotation="0 45 0" color="silver"
width="0.25" height="0.25" depth="0.25"
hands-height="trace: true; side: right; seuils: 0.5, 1, 1.5">
</a-box>
trace: { type: 'boolean', default: false },
seuils: { type: 'array', default: [1]},
state: { type: 'string', default: '0' },
side: { type: 'string', default: 'right'}
<a-box id="boite" position="1 0 -2" rotation="0 45 0" color="silver"
width="0.25" height="0.25" depth="0.25"
hands-distz="trace: true; side: right; seuils: 0.5, 1, 1.5">
</a-box>