NickHardeman / ofxBullet

Bullet Physics Wrapper for Openframeworks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Potential Visual Studio Change/Fix

teemWerk opened this issue · comments

I recently was able to get ofxBullet working under vs2012, but the fix I had to make to your code is something that I can't possibly know the implications of just yet. It has to do with aligned types in bt that vc11 just doesn't know how to deal with. Everywhere you use a bt_transform needs to be passed by reference because it is an aligned type. Last time I dealt with this it had to do with containers and MS not really keeping in line with the STL, and basically the compiler doesn't know how to deal with containers of values of aligned types. But once again, I don't know what this would do to the existing code base, as passing by reference is a notorious sleeper agent for bugs. I'll keep testing and seeing what's up, but it looks pretty promising. It's a total hack, but it hasn't unexpectedly broken yet.

Hi @cantwt.
I don't have much experience with vs2012, but @kentaroid is working on something right now. Check it out.
#20

Hi @cantwt,
@kentaroid finished the vs2012 integration and it is now part of the main branch.
https://github.com/NickHardeman/ofxBullet

cheers,
Nick