Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bounce support? #5

Open
fredUmlaut opened this issue Dec 22, 2019 · 4 comments
Open

Bounce support? #5

fredUmlaut opened this issue Dec 22, 2019 · 4 comments

Comments

@fredUmlaut
Copy link

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
Copy link
Owner

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

@Pierre-Terdiman
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

Thanks Pierre!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants