Pierre-Terdiman / PEEL

Physics Engine Evaluation Lab
http://www.codercorner.com/blog/
150 stars 19 forks source link

Bounce support? #5

Open fredUmlaut opened 4 years ago

fredUmlaut commented 4 years ago

Bounce is a quite mature physics engine, yet simple to integrate and well suited for gamedev. It would be great if it could be included into Peel to see how it ranks against the fastest (Physx!).

https://github.com/irlanrobson/bounce

68k 4ever :)

Pierre-Terdiman commented 4 years ago

Sorry I cannot immediately try this, as it seems the code doesn't compile with old VS versions.

Pierre-Terdiman commented 4 years ago

Ok so I managed to compile the code for vs2008 by commenting out a few asserts and defining nullptr (it turns out it was not a big deal to make it compile).

I added an initial skeleton plugin for Bounce to get things started. It only supports single-shape box actors right now, but you should be able to pick it up and improve on that if you want. Otherwise I might do it myself during the year but I don't have time right now (there would be much more urgent things for me to do in PEEL tbh).

I used the default compile flags as created by premake, and the default number of solver iterations as copied from your hello world sample.

I added the necessary Bounce include & lib files in my commit, so that you can easily recompile things yourself directly. This is not what I did for the other physics engines so tell me if you object and I'll change it.

That's it. Have fun :)

Pierre-Terdiman commented 4 years ago

Just submitted a mini update.

The release settings used by premake were quite bad. I changed them manually within Visual Studio with what I typically use for my projects, and the lib file became 3 times smaller (and quite a bit faster).

(to be continued)

fredUmlaut commented 4 years ago

Thanks Pierre!