Sfoglia il codice sorgente

Merge pull request #481 from riccardobl/fix_setAdamping_bulletnative

Fix for setAngularDamping / bullet native.
Kirill Vainer 9 anni fa
parent
commit
185eb7b6e5

+ 1 - 1
jme3-bullet-native/src/native/cpp/com_jme3_bullet_objects_PhysicsRigidBody.cpp

@@ -434,7 +434,7 @@ extern "C" {
             env->ThrowNew(newExc, "The native object does not exist.");
             return;
         }
-        body->setDamping(body->getAngularDamping(), value);
+        body->setDamping(body->getLinearDamping(), value);
     }
 
     /*