pmndrs/use-cannon

Basic setup with useBox is wobbling and moving slowly

Aperta

#177 aperta il 8 apr 2021

 (3 commenti) (1 reazione) (0 assegnatari)TypeScript (164 fork)github user discovery
bughelp wanted

Metriche repository

Star
 (2950 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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 <Physics> component and a <Canvas>, both without props.

Issue: The box is wobbling and slowly moving out of place.

How to make this box stay in place?

Guida contributor