I need to know how can I generate a complex shape to integrate in my Three.js scene, with the benefit of Cannon.js physics.
I started from this example: http://schteppe.github.io/cannon.js/demos/bunny.html
Looking at the code, I noticed that the bunny is described with its faces and vertices in arrays. Seems pretty powerful but how can I do if I want to generate these arrays dynamically ?
For example, using only Three.js, it's possible to export a Blender model on json format and to load it inside the scene programmatically. I need to do the same thing for Cannon.js, but it doesn't seem to work the same way as Three.js with Blender models.
Thanks in advance