Skip to content

Commit f10047d

Browse files
committed
update README to use blink-controls
1 parent 183c619 commit f10047d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ For [A-Frame](https://aframe.io).
1919
| cameraRig | Selector of the camera rig to teleport | |
2020
| cameraHead | Selector of the scene's active camera ||
2121
| collisionEntities | Selector of the meshes used to check the collisions. If no value provided a plane at Y=0 is used. | |
22-
| ignoreEntities | Selector of meshes that may obstruct the teleport raycaster, like UI or other clickable elements.
22+
| ignoreEntities | Selector of meshes that may obstruct the teleport raycaster, like UI or other clickable elements.
2323
| landingNormal | Normal vector to detect collisions with the `collisionEntities` | (0, 1, 0) |
2424
| landingMaxAngle | Angle threshold (in degrees) used together with `landingNormal` to detect if the mesh is so steep to jump to it. | 45
2525

@@ -59,14 +59,13 @@ require('aframe-cursor-teleport-component');
5959
```
6060

6161
### Usage
62-
This component requires a camera rig setup as described in fernandojsg's [aframe-teleport-controls](https://github.com/fernandojsg/aframe-teleport-controls/blob/master/README.md).
6362

6463
#### Basic Setup
6564

6665
```html
6766
<a-scene cursor="rayOrigin: mouse">
6867
<a-entity id="cameraRig" cursor-teleport="cameraRig: #cameraRig; cameraHead: #head">
69-
<a-entity id="head" position="0 1.52 0" camera look-controls="reverseMouseDrag: true">
68+
<a-entity id="head" position="0 1.52 0" camera look-controls="reverseMouseDrag: true">
7069
</a-entity>
7170
</a-entity>
7271
</a-scene>
@@ -109,15 +108,15 @@ If your scene has interactive entities that should not initiate a teleport when
109108

110109
#### Use with aframe-teleport-controls
111110

112-
This component works with fernandojsg's [aframe-teleport-controls](https://github.com/fernandojsg/aframe-teleport-controls/blob/master/README.md) allowing for easy-to-use navigation across virtually all devices:
111+
This component works with [aframe-blink-controls](https://github.com/jure/aframe-blink-controls) allowing for easy-to-use navigation across virtually all devices:
113112

114113
```html
115114
<a-scene cursor="rayOrigin: mouse" raycaster="objects: .clickable" >
116115
<!-- camera rig -->
117116
<a-entity id="cameraRig" navigator="cameraRig: #cameraRig; cameraHead: #head; collisionEntities: .collision; ignoreEntities: .clickable">
118117
<a-entity id="head" position="0 1.52 0" camera look-controls="reverseMouseDrag: true"></a-entity>
119-
<a-entity laser-controls="hand: left" raycaster="objects: .clickable; far: 100" line="color: red; opacity: 0.75" teleport-controls="cameraRig: #cameraRig; teleportOrigin: #head;"></a-entity>
120-
<a-entity laser-controls="hand: right" raycaster="objects: .clickable" line="color: red; opacity: 0.75" teleport-controls="cameraRig: #cameraRig; teleportOrigin: #head;"></a-entity>
118+
<a-entity laser-controls="hand: left" raycaster="objects: .clickable; far: 100" line="color: red; opacity: 0.75" blink-controls="cameraRig: #cameraRig; teleportOrigin: #head;"></a-entity>
119+
<a-entity laser-controls="hand: right" raycaster="objects: .clickable" line="color: red; opacity: 0.75" blink-controls="cameraRig: #cameraRig; teleportOrigin: #head;"></a-entity>
121120
</a-entity>
122121

123122
<!-- collidable entity -->

0 commit comments

Comments
 (0)