pmndrs/use-cannon

CCD / Continous Collision Detection Enable

yyynnn opened this issue · 3 comments

How to enable ccd on bodies?
Or this feature is not wired yet?
pmndrs/cannon-es#93

is there a ways use cannonjs directly around and with use-cannon?

Cannon doesn't support CCD right now.

Someone created a WIP implementation for CCD on the original repo, but afaik this hasn't been picked up again.

Regarding using cannon directly, because @react-three/cannon runs cannon in a web worker, all objects are created in the web worker and can't be interfaced with directly.

If you find yourself needing to add your own scripts or use other cannon libraries, you may be better off not using @react-three/cannon but using cannon directly.

See this comment for what that might look like: #63 (comment)


You can track that issue to follow CCD support being added to cannon-es (pmndrs/cannon-es#93)

If/when CCD is added, @react-three/cannon can be updated to support it.

In the meantime, I think it makes sense to close this issue.

If you're looking for help with anything else, check out our discord! 🙂

https://discord.gg/poimandres