Skip to content

Commit

Permalink
chore: run prettier, clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
wiledal committed Jun 14, 2023
1 parent 95a232b commit 5cd050e
Show file tree
Hide file tree
Showing 11 changed files with 175 additions and 180 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["demo"]
}
}
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/packages/react-three-rapier"
directory: "/packages/react-three-rapier"
schedule:
interval: "weekly"
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
dist
docs
readme.md
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
{
}
{}
11 changes: 8 additions & 3 deletions packages/react-three-rapier-addons/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<!-- omit from toc -->

# @React-Three/Rapier-Addons

This package contains a collection of helpers and extensions to for use with [@react-three/rapier](https://github.com/pmndrs/react-three-rapier).

---

<!-- omit from toc -->

## Addons index

- [Attractors](#attractors)
- [🖼 Attractors Example](#-attractors-example)

Expand Down Expand Up @@ -61,9 +65,11 @@ type AttractorProps = {
* If not specified, the attractor will apply effects to all RigidBodies.
*/
collisionGroups?: InteractionGroups;
}
};
```

a

```tsx
import { Attractor } from "@react-three/rapier-addons"

Expand Down Expand Up @@ -94,6 +100,5 @@ Gravity types:
- `distance` is the distance between the attractor and rigid-body at the time of calculation

#### 🖼 Attractors Example
<a href="https://codesandbox.io/s/react-three-rapier-attractors-oyj640"><img src="https://raw.githubusercontent.com/pmndrs/react-three-rapier/HEAD/packages/react-three-rapier/misc/example-attractors.jpg" width="240" /></a>


<a href="https://codesandbox.io/s/react-three-rapier-attractors-oyj640"><img src="https://raw.githubusercontent.com/pmndrs/react-three-rapier/HEAD/packages/react-three-rapier/misc/example-attractors.jpg" width="240" /></a>
2 changes: 1 addition & 1 deletion packages/react-three-rapier-addons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"three": "*"
},
"dependencies": {
"three-stdlib": "2.21.6"
"three-stdlib": "2.23.9"
},
"devDependencies": {
"@react-three/fiber": "8.9.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-three-rapier-addons/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src"]
}
Loading

0 comments on commit 5cd050e

Please sign in to comment.