mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
set limits when slider constraint is first created
This commit is contained in:
parent
b0c12dd84a
commit
21df08aa88
1 changed files with 1 additions and 3 deletions
|
@ -63,8 +63,6 @@ void ObjectConstraintSlider::updateSlider() {
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// constraint->setFrames (const btTransform &frameA, const btTransform &frameB);
|
||||
constraint->setLowerLinLimit(_linearLow);
|
||||
constraint->setUpperLinLimit(_linearHigh);
|
||||
|
@ -133,7 +131,7 @@ btTypedConstraint* ObjectConstraintSlider::getConstraint() {
|
|||
forceBodyNonStatic();
|
||||
activateBody();
|
||||
|
||||
// updateSlider();
|
||||
updateSlider();
|
||||
|
||||
return constraint;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue