A A-Frame component to move cursor along objects' surface.
npm install aframe-crawling-cursorAn A-Frame component to move cursor along object's surface.
!DEMO
| Property | Description | Default Value |
| -------- | ----------- | ------------- |
| target | selector(#id) of a cursor | null |
| offset | distance cursor hovers over intersection point | 0.05 (meters, or 5cm) |
1.put a-cursor object in a document.
``html`
2.set raycaster and crawling-cursor component on camera object.`html`
If you want a entity to be a cursor, you can set id on 'target' property.
`html`
If you want some object to avoid intersection, add ignore-ray class to them.`html `
`html
$3
Install via npm:$npm install aframe-crawling-cursorThen register and use.
`javascript
require('aframe');
require('aframe-crawling-cursor');
``