Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upBullet wrapper issue #3509
Closed
Bullet wrapper issue #3509
Comments
|
Thanks, would you mind to include a test to show the issue. Preferable something we can add to the tests. |
|
Sorry for the delay. Finally figured out how to setup the libgdx tests in Android Studio. I think I've come up with a cool test that can only be solved with btPairCachingGhostObject, but it could take a little time before I make a pull request. If you just want a quick test just to reproduce the issue, let me know. |
|
Any update on this @eadle ? |
xoppa
added a commit
that referenced
this issue
Mar 17, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Bullet wrapper currently doesn't allow a btPairCachingGhostObject to getAllContactManfolds. I've tracked this bug down to how a btBroadphasePair temporary instance is stored when trying to access an index in btBroadphasePairArray. It's an easy fix by storing the temporary btBroadphasePair instance in Java instead of C++. This doesn't change how the API is exposed and it looks like this is the desired behaviour anyway (see btBroadphasePair.java).
I'll add to this tomorrow with an example to reproduce the results, but the following three file changes fixes the issue (this guy had a similar issue). I didn't make a pull request because I'm having no luck with swig. Any tips would be appreciated.
jni/swig-src/collision/collision_wrap.cpp:
jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/btBroadphaseArray.java:
jni/swig-src/collision/CollisionJNI.java: