Some joints does not check it's input in constructor, but check on future set
DBotThePony opened this issue · comments
The b2RevoluteJoint::SetLimits
method check it's input (and b2Assert them):
box2d/src/dynamics/b2_revolute_joint.cpp
Lines 425 to 438 in 9dc24a6
However, the constructor does not:
box2d/src/dynamics/b2_revolute_joint.cpp
Lines 50 to 71 in 9dc24a6
Same applies to wheel joint
This go sideways with prismatic joint which has similar properties and it check it's input for validity both in constructor and setter:
box2d/src/dynamics/b2_prismatic_joint.cpp
Line 102 in 9dc24a6
box2d/src/dynamics/b2_prismatic_joint.cpp
Lines 532 to 534 in 9dc24a6