After spending over five weeks trying to work with the new bullet3 CAPI I gave up. I was going nowhere very quickly and burning lots of hours doing it.
I switched to Newton last Saturday and wow. Its awesome. For a physics engine, it is very underrated and considering you have so much documentation and examples, it surprises me people use bullet so heavily. Anyway.. Im a convert (mainly because I can DO things now).
So I thought Id share my current setup and progress here.
Its luajit + luvit + newton - It is a luajit system with full web capabilities in Lua (think Lua based NodeJS)
https://github.com/dlannan/luvit-newton
Test1.lua is a very simple ball and surface.
Test2.lua is a little more complex use of the buoyancy example newton provides.
Note: I built my own little simple renderer, mainly because it was quite easy to do and I dont mind playing around with 3d
Feel free to play around and hassle me if you are having problems with it. Its primarily Win10 at the moment, but I'll be building an Ubuntu version sometime this week.
I'll be dropping updates in this thread too, as it matures. Thanks again to the developers of Newton. It has provided me with a great way forward and will help develop a much larger system down the track.