Browse Source

Bugfix: setting angular/linear sleep threshold have been swapped.

enn0x 14 years ago
parent
commit
424fde9112
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/bullet/bulletRigidBodyNode.cxx

+ 2 - 2
panda/src/bullet/bulletRigidBodyNode.cxx

@@ -426,7 +426,7 @@ get_angular_sleep_threshold() const {
 void BulletRigidBodyNode::
 set_linear_sleep_threshold(PN_stdfloat threshold) {
 
-  _rigid->setSleepingThresholds(_rigid->getLinearSleepingThreshold(), threshold);
+  _rigid->setSleepingThresholds(threshold, _rigid->getAngularSleepingThreshold());
 }
 
 ////////////////////////////////////////////////////////////////////
@@ -437,7 +437,7 @@ set_linear_sleep_threshold(PN_stdfloat threshold) {
 void BulletRigidBodyNode::
 set_angular_sleep_threshold(PN_stdfloat threshold) {
 
-  _rigid->setSleepingThresholds(threshold, _rigid->getAngularSleepingThreshold());
+  _rigid->setSleepingThresholds(_rigid->getLinearSleepingThreshold(), threshold);
 }
 
 ////////////////////////////////////////////////////////////////////