The problem is autoplay-animation that I want to disable at the start.
I thought why not to start this sentence
AFRAME.registerComponent('track1', { <
The code is getting messy and Im trying to figure out both functions 'remove' and ´play' on the #track1.
Clicking on the "animate button" sets function 'play' on the #track1.
The code 'triggers:a-curve-point' inside the aframe-along-component.js always trigger the animation so soon a curve is established like #track1.
AFRAME.registerComponent('alongpath', {
//dependencies: ['curve'],
schema: {
curve: {default: ''},
triggers: {default: 'a-curve-point'},
triggerRadius: {type: 'number', default: 0.01},
dur: {default: 1000},
delay: {default: 0},
loop: {default: false},
rotate: {default: false},
resetonplay: {default:true}
},
init: function () { <