mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 18:30:42 +02:00
fix hinge limits
This commit is contained in:
parent
e52c94895e
commit
41f699ec9b
1 changed files with 2 additions and 4 deletions
|
@ -59,14 +59,12 @@ void ObjectConstraintHinge::updateHinge() {
|
||||||
float softness;
|
float softness;
|
||||||
float biasFactor;
|
float biasFactor;
|
||||||
float relaxationFactor;
|
float relaxationFactor;
|
||||||
float maxImpulse;
|
|
||||||
|
|
||||||
withReadLock([&]{
|
withReadLock([&]{
|
||||||
axisInA = _axisInA;
|
axisInA = _axisInA;
|
||||||
constraint = static_cast<btHingeConstraint*>(_constraint);
|
constraint = static_cast<btHingeConstraint*>(_constraint);
|
||||||
low = _low;
|
low = _low;
|
||||||
high = _high;
|
high = _high;
|
||||||
maxImpulse = _maxImpulse;
|
|
||||||
biasFactor = _biasFactor;
|
biasFactor = _biasFactor;
|
||||||
relaxationFactor = _relaxationFactor;
|
relaxationFactor = _relaxationFactor;
|
||||||
softness = _softness;
|
softness = _softness;
|
||||||
|
@ -76,8 +74,8 @@ void ObjectConstraintHinge::updateHinge() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto bulletAxisInA = glmToBullet(axisInA);
|
// auto bulletAxisInA = glmToBullet(axisInA);
|
||||||
constraint->setAxis(bulletAxisInA);
|
// constraint->setAxis(bulletAxisInA);
|
||||||
constraint->setLimit(low, high, softness, biasFactor, relaxationFactor);
|
constraint->setLimit(low, high, softness, biasFactor, relaxationFactor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue