Skip to content

Commit

Permalink
Fix example raycaster docs (fix #5268)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcos committed Apr 3, 2023
1 parent 917cd02 commit 1e6a391
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/components/raycaster.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ both build on top of the raycaster component.
## Example

```html
<a-entity id="player" collider-check>
<a-entity raycaster="objects: .collidable" position="0 -0.9 0" rotation="90 0 0"></a-entity>
<a-entity id="player" >
<a-entity collider-check raycaster="objects: .collidable; showLine:true;" position="0 1 0"></a-entity>
</a-entity>
<a-entity class="collidable" geometry="primitive: box" position="1 0 0"></a-entity>
<a-entity class="collidable" geometry="primitive: box" position="0 1 -3"></a-entity>
```

Whenever an entity adds or removes the class `collidable`, the raycaster will
Expand Down

0 comments on commit 1e6a391

Please sign in to comment.