I'm trying to let a despawn on click if the cursor is ontop of the object and the mouse is clicked and let if respawn at a new position.
i used aframe-event-set-component (https://www.npmjs.com/package/aframe-event-set-component) to realize this but i'm unable to pass a new random generated position.
i hope someone can help me out :)
i tried to pass new position coordinates with stringinterpolation and with databinding without any success.
<a-entity>
<a-gltf-model
src="../../assets/models/CoinBlock.gltf"
position="1.5 2 -0.5"
rotation="15 -50 0"
radius="1.25"
scale="0.002 0.002 0.002"
event-set__down="_event: mousedown; position: -1 0.5 -0.5; rotation: -45 45 0"
</a-gltf-model>