use-cannon
use-cannon copied to clipboard
👋💣 physics based hooks for @react-three/fiber
Sometimes you want to do this: ``` function Thing({ position, rotation }) { const [ref] = useBox(() => ({ position, rotation })); return ( ); } function CoolThing({ position, rotation...
This issue is connected with #177. According to this [issue on cannonjs](https://github.com/schteppe/cannon.js/issues/348) , this jittering of objects also exists in cannonjs. I examine the [jenga example in cannon-es](https://pmndrs.github.io/cannon-es/examples/jenga) and after...
When changing camera position, and rotation same time I'm getting weird vibration / stuttering in objects around. This started happening after I updated packages. I did some debugging, and found...
I can't see a good reason why there is a suspense boundary inside the library, this should ideally be handled by consumers for more granular control. E.g. consumer might not...
I am trying to dynamically update the useCompoundBody shape so that the bounding box changes without having to reinitialize the component. Here is a CodeSandbox example: https://codesandbox.io/s/dynamically-update-compoundbody-nkzu0?file=/src/App.js I expect that...
For some cases attaching multiple cannon bodies to a single mesh is necessary. As of now, `use-cannon` only lets you pass the `ref` from a single mesh or an instanced...
Consider the demo as follows: https://codesandbox.io/s/r3f-basic-demo-forked-t64x8?file=/src/App.js I created a ground plane using `usePlane` and placed a box on top using `useBox`. The objects are wrapped in a `` component and...
See the basic demo where a sphere moves at a fixed pace (using `api.velocity.set`) along a plane: https://codesandbox.io/s/shaky-986lm?file=/src/index.js. the sphere will every now and then exhibit some shakiness, as if...
I got a problem that in some environment javascript worker api should be disabled. Shall I disable it in cannon manually?
im trying to do this: http://schteppe.github.io/cannon.js/examples/threejs_mousepick.html in the example repo, the monday morning demo, try picking the chair - it just makes no sense because it goes to object center...