Closed DBotThePony closed 3 months ago
The b2RevoluteJoint::SetLimits method check it's input (and b2Assert them): https://github.com/erincatto/box2d/blob/9dc24a6fd4f32442c4bcf80791de47a0a7d25afb/src/dynamics/b2_revolute_joint.cpp#L425-L438
b2RevoluteJoint::SetLimits
However, the constructor does not: https://github.com/erincatto/box2d/blob/9dc24a6fd4f32442c4bcf80791de47a0a7d25afb/src/dynamics/b2_revolute_joint.cpp#L50-L71
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: https://github.com/erincatto/box2d/blob/9dc24a6fd4f32442c4bcf80791de47a0a7d25afb/src/dynamics/b2_prismatic_joint.cpp#L102 https://github.com/erincatto/box2d/blob/9dc24a6fd4f32442c4bcf80791de47a0a7d25afb/src/dynamics/b2_prismatic_joint.cpp#L532-L534
The
b2RevoluteJoint::SetLimits
method check it's input (and b2Assert them): https://github.com/erincatto/box2d/blob/9dc24a6fd4f32442c4bcf80791de47a0a7d25afb/src/dynamics/b2_revolute_joint.cpp#L425-L438However, the constructor does not: https://github.com/erincatto/box2d/blob/9dc24a6fd4f32442c4bcf80791de47a0a7d25afb/src/dynamics/b2_revolute_joint.cpp#L50-L71
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: https://github.com/erincatto/box2d/blob/9dc24a6fd4f32442c4bcf80791de47a0a7d25afb/src/dynamics/b2_prismatic_joint.cpp#L102 https://github.com/erincatto/box2d/blob/9dc24a6fd4f32442c4bcf80791de47a0a7d25afb/src/dynamics/b2_prismatic_joint.cpp#L532-L534