pmndrs / use-cannon

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

Drop support for passing THREE.Face3 / Geometry to body hooks #159

Closed stockhuman closed 3 years ago

stockhuman commented 3 years ago

Addresses #152, presently breaks convex polyhedron demo and removes the ability to pass THREE.Geometry directly.

The remaining question for me is about importing the legacy geometry (or, optionally, making a reduced-in-scope fork of the particular file) to be able to take BufferGeometries as before.

stockhuman commented 3 years ago

Latest changes import the newly minted three-stdlib, explicitly set examples at Three r125+ and fix the Convex demo accordingly. In the future, it'd be useful to export components alla drei so that pre-made utilities like cloth, heightfield-from-image, VHACD and the like can be easily integrated.