Skip to content

Commit

Permalink
hand-tracking-grab-controls.md: Minor error and clarification (#5520)
Browse files Browse the repository at this point in the history
The `showColliders` property should be set to true to show the colliders, not to false.

I take the opportunity to clarify that colliders change color when a collision is detected.
  • Loading branch information
jgbarah committed Apr 29, 2024
1 parent 5610002 commit e55b306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/components/hand-tracking-grab-controls.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ The `grabbable` component makes any entity hand grababble.
<a-box grabbable></a-box>
```

For debugging purposes you can make the colliders visible as below:
For debugging purposes you can make the colliders visible, changing color when a collision is detected, as shown below:

```html
<a-scene obb-collider="showColliders: false"></a-scene>
<a-scene obb-collider="showColliders: true"></a-scene>
```

## Properties
Expand Down

0 comments on commit e55b306

Please sign in to comment.