b2distancejoint getreactionforce how does it work??

Hey there, I want to make a presentation about a program I've edited, which (i think)
uses a b2distancejoint and then gets the force it is getting (and then calculates the length of it)
I want to know HOW this force is calculated. In the function its written
b2Vec2 F = (inv_dt * m_impulse) * m_u;

but where do m_u and m_impulse come from? Where are they calculated?

Thanks for all answers.
This https://github.com/erincatto/Box2D/blob/master/Box2D/Box2D/Dynamics/Joints/b2DistanceJoint.cpp#L235 is the code you're looking at, very likely. Here we define the force of the reaction that the distance joint is responsible for.

inv_dt is the inverse of the timestep over which the impulse occurs (an impulse is in units N*s).
m_impulse is the value of the total impulse that the joint applies on its attached bodies, velocity constraints solved (see https://github.com/erincatto/Box2D/blob/master/Box2D/Box2D/Dynamics/Joints/b2DistanceJoint.cpp#L170).
m_u is a temp (volatile state) variable for the solver, apparently representing the normalized direction of the joint (see https://github.com/erincatto/Box2D/blob/master/Box2D/Box2D/Dynamics/Joints/b2DistanceJoint.cpp#L87).

Hope this helps.

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