- fix GhostObject overlapping objects in native bullet (thanks to @ttrocha) (Fixes issue 457)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9113 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 751b4e851d
commit 9817fa4ef6
  1. 2
      engine/src/bullet-native/com_jme3_bullet_objects_PhysicsGhostObject.cpp

@ -181,7 +181,7 @@ extern "C" {
virtual ~jmeGhostOverlapCallback() {}
virtual bool processOverlap(btBroadphasePair& pair)
{
btCollisionObject *co1 = (btCollisionObject *)pair.m_pProxy0->m_clientObject;
btCollisionObject *co1 = (btCollisionObject *)pair.m_pProxy1->m_clientObject;
jmeUserPointer *up1 = (jmeUserPointer*)co1 -> getUserPointer();
jobject javaCollisionObject1 = m_env->NewLocalRef(up1->javaCollisionObject);
m_env->CallVoidMethod(m_object, jmeClasses::PhysicsGhostObject_addOverlappingObject, javaCollisionObject1);

Loading…
Cancel
Save