UNPKG

aframe

Version:

A web framework for building virtual reality experiences.

37 lines (29 loc) 1.04 kB
--- title: <a-cursor> type: primitives layout: docs parent_section: primitives source_code: src/extras/primitives/primitives/a-cursor.js --- The cursor primitive is a reticle that allows for clicking and basic interactivity with a scene on devices that do not have a hand controller. The default appearance is a ring geometry. The cursor is usually placed as a child of the camera. Read the [cursor component documentation](../components/cursor.md) for detailed information about how the cursor works and how to use the cursor. ## Example ```html <a-scene> <a-camera> <a-cursor></a-cursor> </a-camera> <a-box></a-box> </a-scene> ``` ## Attributes | Attribute | Component Mapping | Default Value | |--------------|--------------------|---------------| | far | raycaster.far | 1000 | | fuse | cursor.fuse | false | | fuse-timeout | cursor.fuseTimeout | 1500 | | interval | raycaster.interval | 100 | | objects | raycaster.objects | 100 |