Package Exports
- aframe-cursor-tracker
- aframe-cursor-tracker/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aframe-cursor-tracker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cursor-tracker
Set on an entity to track the orientation of the cursor's ray.
Typically set on a entity that is a child of the camera that the cursor uses. This entity will then always point towards the cursor/mouse pointer.
Schema
| Property | Description | Default |
|---|---|---|
| cursor | selector for the cursor entity to track | #cursor |
Installation
<script src="https://cdn.jsdelivr.net/npm/aframe-cursor-tracker@0.1.0/index.min.js"></script>Or via npm
npm install aframe-cursor-trackerExamples
Also Used by mouse-manipulation component to keep grabbed entities aligned with the mouse pointer.