schteppe / cannon.js

A lightweight 3D physics engine written in JavaScript.
http://schteppe.github.com/cannon.js
MIT License
4.69k stars 712 forks source link

Utility to convert geometry to hollow/solid shapes #476

Open LeoDog896 opened 2 years ago

LeoDog896 commented 2 years ago

I think a good fit for this library would be to allow abstract geometry from THREE.js to be converted into collision shapes. With the bunny example, you need to duplicate said code into the objects you want, but there's in multiple scenarios where you may want this behavior, and having to copy that util would be unnecessary.

LiamOsler commented 2 years ago

Hi @LeoDog896, It doesn't look like this repo is being actively maintained anymore- take a look at cannon-es for a fork of Cannon that is being actively maintained.

The feature you're describing (converting a THREE.js mesh to Cannon.js shapes/bodies) is available using a library called three-to-cannon.