mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 22:20:12 +00:00
applied some reported bugfixes, angular limit issue, limit scaled from -2.0 -> -1.0
This commit is contained in:
parent
394e927576
commit
bba61c834c
@ -288,10 +288,10 @@ void btGeneric6DofConstraint::solveConstraint(btScalar timeStep)
|
||||
if (m_lowerLimit[i+3] < m_upperLimit[i+3])
|
||||
{
|
||||
//clamp the values
|
||||
btScalar loLimit = m_upperLimit[i+3] > -3.1415 ? m_lowerLimit[i+3] : btScalar(-1e30);
|
||||
btScalar loLimit = m_lowerLimit[i+3] > -3.1415 ? m_lowerLimit[i+3] : btScalar(-1e30);
|
||||
btScalar hiLimit = m_upperLimit[i+3] < 3.1415 ? m_upperLimit[i+3] : btScalar(1e30);
|
||||
|
||||
btScalar projAngle = btScalar(-2.)*xyz[i];
|
||||
btScalar projAngle = btScalar(-1.)*xyz[i];
|
||||
|
||||
if (projAngle < loLimit)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user