aframe-alongpath-component | A-Frame Component to let entities follow predefined paths | AWS library
kandi X-RAY | aframe-alongpath-component Summary
kandi X-RAY | aframe-alongpath-component Summary
A-Frame Component to let entities follow predefined paths
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of aframe-alongpath-component
aframe-alongpath-component Key Features
aframe-alongpath-component Examples and Code Snippets
Community Discussions
Trending Discussions on aframe-alongpath-component
QUESTION
In the docs for the aframe-alongpath-component it has a section on events and on state.
One of the states is "moveonpath" - The Entity currently moving along the path.
How would I hook into that so that whilst the entity is moving it plays a specific sound?
I'm also not clear from the docs how I could trigger the movement along the path to start in code from elsewhere. It appears to have an event you can listen to "movingstarted" but no play method I can call on the component.
The end goal I am trying to achieve is a rock being flung from a catapult.
When the catapult animation completes I want to trigger to rock the follow along a path for its trajectory and trigger a sound whilst moving and another when it reaches the end of the path (which will be in the ocean).
...ANSWER
Answered 2018-Feb-18 at 13:51checking the state is quite simple:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aframe-alongpath-component
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page