Skip to content

Commit

Permalink
docs(collider): add note for sensor auto-colliders
Browse files Browse the repository at this point in the history
  • Loading branch information
Neosoulink committed Nov 9, 2024
1 parent 137ff50 commit cea5780
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/components/collider.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Be aware that the event will be emitted by the `RigidBody` parent
<RigidBody @collision-enter="onCollisionEnter" @collision-exit="onCollisionExit">
<BallCollider activeCollision />
</RigidBody>
...
...

Check failure on line 15 in docs/components/collider.md

View workflow job for this annotation

GitHub Actions / Lint (20)

Delete `⏎`

Check failure on line 15 in docs/components/collider.md

View workflow job for this annotation

GitHub Actions / Lint (20)

Too many blank lines at the end of file. Max of 0 allowed
```

## Props
Expand Down Expand Up @@ -44,7 +45,7 @@ By passing the above properties, the collider will no longer be affected by the
- **@intersection-enter**: When another collider starts to traverse the *sensor*
- **@intersection-exit**: When another collider leave the *sensor*

I.e:
> ℹ️ Note that you can directly pass those properties to the **`RigidBody`** for **auto-colliders**.
```vue
<RigidBody type="fixed">
Expand All @@ -67,7 +68,8 @@ I.e:
/>
</RigidBody>
```
<!-- Add the demo link -->

<!-- TODO: Add the demo link -->

> ::: info
> You can access the [Collider](https://rapier.rs/docs/user_guides/javascript/colliders) instance
Expand Down

0 comments on commit cea5780

Please sign in to comment.