This repository is a fork of three-pinata. The reason for this fork is to decouple the physics engine from the original project and publish it on npm for easier integration into other projects.
Three.js library for fracturing and slicing non-convex meshes in real time.
This is a Typescript port of the OpenFracture library I wrote for Unity several years ago.
The demo app utilizes Rapier for the collision detection and physics.
https://nyan-left.github.io/three-pinata/
npm install three-pinata
- Clone the repo
- Run the following commands in the root folder
npm install
npm run dev
- Go to http://127.0.0.1:5173/three-pinata/ in your browser.
Coming soon!
- Improved demo
- Offload computation to web workers
- Handle multiple geometry groups
- Support for meshes with tangent data