stemkoski / A-Frame-Examples

A collection of examples using the A-Frame library.
https://stemkoski.github.io/A-Frame-Examples/
165 stars 67 forks source link

Curve following #2

Closed twoxfh closed 4 years ago

twoxfh commented 4 years ago

Any thoughts to adding pause, resume, and reverse to curve following component? To me these features haven been hard to implement. I got them working with out of box aframe animation over multiple paths but it doesnt support curves.

Thanks for all the examples!

dirkk0 commented 4 years ago

You can pause the component with document.getElementById("jetModel").setAttribute("curve-follow","enabled: false"). I just tried it out in the console. Reversing should be a matter of inversing the time.

stemkoski commented 4 years ago

As mentioned in the commit, you can:

Hope this helps!

twoxfh commented 4 years ago

Thanks a bunch, and works great. Much better than might thoughts about keeping track of multiple paths and reversing arrays.