-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3ec76f
commit 32dbccd
Showing
8 changed files
with
147 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
# Collider | ||
|
||
## Props | ||
|
||
| Prop | Description | Default | | ||
| :-------------- | :------------------------------------------------------------------------------------------------------------ | --------- | | ||
| **shape** | shape of the collider | `cuboid` | | ||
| **args** | The half-sizes of the collider shapes | `[1,1,1]` | | ||
| **object** | Required for certain shapes like `trimesh`, `hull`, `heightfield`. | | | ||
| **friction** | The friction coefficient of this collider. (automatic-collider) | `0.5` | | ||
| **mass** | Mass of the collider. (automatic-collider) | `1` | | ||
| **density** | Restitution controls how elastic (aka. bouncy) a contact is. (automatic-collider) | `0` | | ||
| **restitution** | The collider density. If non-zero the collider's mass and angular inertia will be added. (automatic-collider) | `1` | | ||
|
||
:::info The `colliders` instance has many other methods, please check the | ||
[official docs](https://rapier.rs/docs/api/javascript/JavaScript3D/) for a | ||
complete list, if you need them, you can | ||
use[Template ref](https://vuejs.org/guide/essentials/template-refs.html#template-refs). | ||
::: | ||
|
||
## Expose object | ||
|
||
``` | ||
{ | ||
instance, | ||
colliderDesc, | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters