v2.2.0
Use-cannon 2.x is compatible with (and the cause of) react-three-fiber v7.
The integrated debugger has been improved and made optional and modular, integrate it into your scene and pass parameters as follows, where scale
visually scales the physics mesh representation to better see it against your geometry.
<Physics>
<Debug scale={1.1} color='black'>
{/* children */}
</Debug>
</Physics>
This release also includes more granular, detailed collision events! (#133)
See collideBegin
and collideEnd
events.
Thanks, @a-type