pmndrs / use-cannon

👋💣 physics based hooks for @react-three/fiber
https://cannon.pmnd.rs
2.74k stars 153 forks source link

Add more examples: Hinge Vehicle, Gears, Tear constraint, Friction/ContactMaterial #316

Closed Glavin001 closed 2 years ago

Glavin001 commented 2 years ago
Hinge Vehicle Gears Tear Friction
https://use-cannon-git-fork-glavin001-feat-more-examples-pmndrs.vercel.app/#/demo/HingeVehicle https://use-cannon-git-fork-glavin001-feat-more-examples-pmndrs.vercel.app/#/demo/Gears https://use-cannon-git-fork-glavin001-feat-more-examples-pmndrs.vercel.app/#/demo/Tear https://use-cannon-git-fork-glavin001-feat-more-examples-pmndrs.vercel.app/#/demo/Friction
image image image image

I'm still learning React-Three-Fiber and Cannon-ES and use-cannon. Appreciate any and all feedback! I can remove/cherry-pick any of the examples you like. I wanted to learn how to achieve these for myself and figured someone else may find these examples useful, too.

Love these projects! Thank you!

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pmndrs/use-cannon/14P1DA4BT48iXccqeGjkPzUHyCBV
✅ Preview: https://use-cannon-git-fork-glavin001-feat-more-examples-pmndrs.vercel.app

bjornstar commented 2 years ago

There's a lot going on here, can we focus on one example at a time?

Glavin001 commented 2 years ago

Absolutely, that's the plan. Any specific example/feature I should cherry-pick for review first?

I'll start with the Friction example and new feature/change since others are also interested. PR coming soon!

Glavin001 commented 2 years ago
Glavin001 commented 2 years ago