Crawling Cursor
An A-Frame component to move cursor along object's surface.
API
Property | Description | Default Value |
---|---|---|
target | selector(#id) of a cursor | null |
offset | distance cursor hovers over intersection point | 0.05 (meters, or 5cm) |
Usage
1.put a-cursor
object in a document.
2.set raycaster
and crawling-cursor
component on camera
object.
options
If you want a entity to be a cursor, you can set id on 'target' property.
If you want some object to avoid intersection, add ignore-ray
class to them.
<!-- cursor will not be along with this box -->
Installation
browser
My A-Frame Scene
npm
Install via npm:
$npm install aframe-crawling-cursor
Then register and use.
;;