Documentation : https://sbcode.net/threejs/physics-cannonjs/
YT Members : https://www.youtube.com/channel/UCmUILI2AWt2MSUgPlZwFdOg/join
Course Coupons : https://sbcode.net/coupons#threejs
Animation can also be achieved using a Physics library. We can use a library called Cannon.js. But, rather than using the original Cannon.js, which is no longer maintained, we can install a newer fork of it named Cannon-es instead.
The Cannon physics library is ideal for simulating rigid bodies. You don't have to use it with Three.js, but it was originally built to be used with Three.js, so it will be quite easy to begin using in your project.
We will use it to make objects move and interact in a more realistic way and provide collision detection possibilities.
Download
0 formats
No download links available.
Threejs TypeScript : Physics with Cannon.js | NatokHD