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 »

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