use-cannon
use-cannon copied to clipboard
Draft: Add useBody hook that infers shape with three-to-cannon
Notes
- Add
useBody
hook that infers shape withthree-to-cannon
- Add
ShapeInference
demo demonstrating theuseBody
hook
Todo
- ~~When two convex hulls generated by
three-to-cannon
collide, an error is thrown~~- ~~PR with fix pending review: https://github.com/donmccurdy/three-to-cannon/pull/80~~
- Generated bounding shapes have an incorrect center of mass
- Make demo more interesting
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
use-cannon | ✅ Ready (Inspect) | Visit Preview | Jun 26, 2022 at 1:19PM (UTC) |
@isaac-mason do you have any updates on this PR? I'm waiting after this functionality to dynamically assign shapes with the useBody hook in my project.
Thanks :)
I appreciate the interest @fgarrec0397!
There are still a few issues and TODOs before I'd consider this PR ready:
- generated bounding shapes have an incorrect center of mass
- when two generated convex hulls collide the physics simulation breaks
- the useBody hook API could be improved
- and of course, the PR needs a review! 🙂
I'm trying to grab time for this where I can, but unfortunately, work & life have been a little busier!
Thanks for the update @isaac-mason 🙂
There is no stress, I will make a work around waiting your PR to be merged and released !
Thanks again !