mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +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 biasFactor;
|
||||
float relaxationFactor;
|
||||
float maxImpulse;
|
||||
|
||||
withReadLock([&]{
|
||||
axisInA = _axisInA;
|
||||
constraint = static_cast<btHingeConstraint*>(_constraint);
|
||||
low = _low;
|
||||
high = _high;
|
||||
maxImpulse = _maxImpulse;
|
||||
biasFactor = _biasFactor;
|
||||
relaxationFactor = _relaxationFactor;
|
||||
softness = _softness;
|
||||
|
@ -76,8 +74,8 @@ void ObjectConstraintHinge::updateHinge() {
|
|||
return;
|
||||
}
|
||||
|
||||
auto bulletAxisInA = glmToBullet(axisInA);
|
||||
constraint->setAxis(bulletAxisInA);
|
||||
// auto bulletAxisInA = glmToBullet(axisInA);
|
||||
// constraint->setAxis(bulletAxisInA);
|
||||
constraint->setLimit(low, high, softness, biasFactor, relaxationFactor);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue