use-cannon icon indicating copy to clipboard operation
use-cannon copied to clipboard

Draft: Add useBody hook that infers shape with three-to-cannon

Open isaac-mason opened this issue 2 years ago • 4 comments

Notes

  • Add useBody hook that infers shape with three-to-cannon
  • Add ShapeInference demo demonstrating the useBody 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

isaac-mason avatar Jun 26 '22 13:06 isaac-mason

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)

vercel[bot] avatar Jun 26 '22 13:06 vercel[bot]

@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 :)

fgarrec0397 avatar Jul 12 '22 14:07 fgarrec0397

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!

isaac-mason avatar Jul 14 '22 11:07 isaac-mason

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 !

fgarrec0397 avatar Jul 15 '22 16:07 fgarrec0397