implementing physics in complex geometries

I’m trying to create a class to implement physics in complex geometries, this example uses the object’s triangles to create physics that works. I’m still going to do another one that will use bvh calculations with bounding boxes

the physics class is in:
https://didisoftwares.ddns.net/7/js/physics.js

simple apply physisc by:
physics.createObj(model1,‘mesh’,‘obj’,null,mass);

If anyone has more examples of physics in complex models, post them there