Merge pull request #361 from Dokthar/bullet_RigidBody

GImpactCollisionShape : fix for #188, added updateBound()
experimental
Kirill Vainer 9 years ago
commit 3412c0cf2b
  1. 1
      jme3-bullet-native/src/native/cpp/com_jme3_bullet_collision_shapes_GImpactCollisionShape.cpp

@ -51,6 +51,7 @@ extern "C" {
jmeClasses::initJavaClasses(env);
btTriangleIndexVertexArray* array = reinterpret_cast<btTriangleIndexVertexArray*>(meshId);
btGImpactMeshShape* shape = new btGImpactMeshShape(array);
shape->updateBound();
return reinterpret_cast<jlong>(shape);
}

Loading…
Cancel
Save