mirror of
https://github.com/panda3d/panda3d.git
synced 2026-03-14 13:30:10 -05:00
Bugfix: setting angular/linear sleep threshold have been swapped.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user