Bug with GetMotorForce

Since changing to impulse based joints:
b2PrismaticJoint.cpp
float32 b2PrismaticJoint::GetMotorForce() const
{
return m_motorImpulse;
}
should be
float32 b2PrismaticJoint::GetMotorForce(float32 inv_dt) const
{
return inv_dt*m_motorImpulse;
}
I think.
But more generally, I was wondering what the benefit was of passing inv_dt in is (it's on a lot of joint methods). Isn't there only one valid value, ever, the last world timestep (or substep?).
That's true. We should store the last time step used in the joint.
Or just retrieve it when needed.

Original thread: https://box2d.org/forum/viewtopic.php?t=2059