Eventually this will be a toolbox where you can simulate using tools to shape materials.
Known issues:
- Physics are Squishy: Need to use a weighted Kasch to account for kinematic collisions.
- Physics are expensive: Need to enable sleeping and to reduce number of points in shape matching.
- Physics are weird: Need to add internal non-colliding(?) points to the shape matching for better moment of inertia.
This demo can either be run without building (in Chrome/Edge/Opera since raw three.js examples need Import Maps), or built with:
npm install
npm run build
After building, make sure to edit the index .html to point from "./src/main.js" to "./build/main.js".
-
manifold (CSG Backend)
-
three-mesh-bvh (Bounding Volume Hierarchy)
-
three.js (3D Rendering Engine)
-
esbuild (Bundler)
-
three-bvh-csg (CSG Backend; Unused so far)
-
physx-js-webidl (Tetrahedral Meshing Backend; Unused so far)