Not initialized values in btSliderConstraint

Post Reply
gdlk
Posts: 62
Joined: Fri Oct 24, 2014 7:01 pm

Not initialized values in btSliderConstraint

Post by gdlk » Mon Dec 17, 2018 9:04 pm

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!

Post Reply