pmndrs / use-cannon

👋💣 physics based hooks for @react-three/fiber
https://cannon.pmnd.rs
2.76k stars 155 forks source link

Feature request - changing gravity dynamically #126

Closed lourd closed 3 years ago

lourd commented 3 years ago

Dynamically changing the gravity prop given to the Physics component currently has no effect. This is unexpected, as React components should always respond to new props being passed. There's plenty of creative use cases where you might want to change the physics system's gravity.

hazem3500 commented 3 years ago

is there a workaround for this?

drcmda commented 3 years ago

is there a workaround for this?

there is, a pull request 😅

hazem3500 commented 3 years ago

@drcmda hehe 😁, I'll see what I can do