pmndrs / use-cannon

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

DebugProvider now updates InstancedMeshes #366

Closed krispya closed 2 years ago

krispya commented 2 years ago

This fixes https://github.com/pmndrs/use-cannon/issues/364. It adds an additional code path to the useFrame in DebugProvider for updating when the body is an InstancedMesh.

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/F7kBHSEf7RUuCJTsGPNaNE6iHLFt
✅ Preview: https://use-cannon-git-fork-krispya-debug-instance-pmndrs.vercel.app

[Deployment for fa5a577 failed]

bjornstar commented 2 years ago

I cherry picked your initial commit, thanks for contributing!