aframe-alongpath-component
A component for A-Frame that allows entities to follow predefined paths.
Properties
Property | Description | Default Value |
---|---|---|
path | One or more point on the path the entity should follow (Format: "x,y,z x,y,z x,y,z") | '' |
closed | Whether or not the path should be closed automatically | false |
dur | Duration in milliseconds for the object to follow the entire path | 1000 |
delay | Number of milliseconds to wait for the animation to begin | 2000 |
loop | Whether or not the animation should loop | false |
Usage
Browser Installation
Install and use by directly including the browser files:
My A-Frame Scene
NPM Installation
Install via NPM:
npm install aframe-alongpath-component
Then register and use.
;;