—
—
isn't this what useCompoundBody does? I#ve just updated the ragdoll demo with it and @codynova made a super simple two-body demo. or is this something else? ```jsx function CompoundBody(props) {...
of course in a particle set or a cloth simulation i guess this wouldnt work b/c each body has to have some freedom of movement albeit constrained to the other...
we could maybe learn from react-springs playbook here, esp useSprings: https://www.react-spring.io/docs/hooks/use-springs ```jsx const [refs, api] = use?????(10000, () => ({ ... })) return data.map((id, index) => ```
if you find a way to make it work across the web worker and if its generic enough sure, why not. or, if you figure that it isn't, put all...
@bjornstar @codynova this was also reported on discord, > Hello everyone! 👋 > > I'm facing weird performance issues when updating packages: react-three-fiber -> @react-three/fiber use-cannon -> @react-three/cannon older version...
sounds great!
@codynova do you know what names would be good and what values we could use?
yes. would be good if use-cannon had something similar. or maybe even material qualities that people can mix. ```jsx import { contact } from 'use-cannon' ```
`enabled` could also be a flag on the Physics provider, i think i would also use this in my projects when objects are outside the frustrum.
i think pausing would be a nice feature. similar to enabled/disabled on threejs controls. that would also solve @sidealice usecase since it's requesting the webworker runtime.