Skip to content

Commit

Permalink
fix: use more accurate default gravity
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandernanberg authored and bjornstar committed Oct 29, 2021
1 parent 133d5f7 commit 543f3e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function Physics({
children,
shouldInvalidate = true,
step = 1 / 60,
gravity = [0, -10, 0],
gravity = [0, -9.81, 0],
tolerance = 0.001,
iterations = 5,
allowSleep = false,
Expand Down
2 changes: 1 addition & 1 deletion src/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default function Provider({
children,
shouldInvalidate = true,
step = 1 / 60,
gravity = [0, -10, 0],
gravity = [0, -9.81, 0],
tolerance = 0.001,
iterations = 5,
allowSleep = false,
Expand Down

1 comment on commit 543f3e2

@vercel
Copy link

@vercel vercel bot commented on 543f3e2 Oct 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.