Page 1 of 1

Not initialized values in btSliderConstraint

Posted: Mon Dec 17, 2018 9:04 pm
by gdlk
Hi!, I found this and I think that it could lead to bugs

In btSliderConstraint, the variables m_linPos, m_angDepth and m_angPos are not initialized with the class. If someone create the constraint and before call stepSimulation ask by getLinearPos(), getAngDepth() or getAngularPos(), will get random values.

By the moment I am solving using the testLinLimits() and testAngLimits() to initialize values

Best regards!