inconsistent API, btHingeConstraint and btHinge2Constraint (maxAppliedForce versus maxAppliedImpulse) #3465
erwincoumans
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
btHingeConstraint uses the maxAppliedForce (in void setMaxMotorImpulse(btScalar maxMotorImpulse) and void enableAngularMotor(bool enableMotor,btScalar targetVelocity,btScalar maxMotorImpulse)
btHinge2Constraint uses maxAppliedImpulse in hinge_2->getRotationalLimitMotor(2)->m_maxMotorForce
Although there is a linear relationship (maxAppliedForce * deltaTime = maxAppliedImpulse), we should make the API consistent.
Beta Was this translation helpful? Give feedback.
All reactions