Hi,
I was browsing through the math for the distance joint (in conjunction with Erin's excellent GDC 2011 presentation) and velocity constraint calculation makes perfect sense to me. The one thing that I don't understand is the impulse application, and the mass calculation in particular.
The variable m_mass is calculated by inverting the effective mass plus 'gamma' (which is gamma from the presentation divided by h).
i.e. m_mass = (1/(invMass + gamma))
I assume that this is some kind of optimisation rather than reflecting the actual mass, but I can't figure out why we need that extra gamma. Can anyone enlighten me?
Thanks,
Rory
I was browsing through the math for the distance joint (in conjunction with Erin's excellent GDC 2011 presentation) and velocity constraint calculation makes perfect sense to me. The one thing that I don't understand is the impulse application, and the mass calculation in particular.
The variable m_mass is calculated by inverting the effective mass plus 'gamma' (which is gamma from the presentation divided by h).
i.e. m_mass = (1/(invMass + gamma))
I assume that this is some kind of optimisation rather than reflecting the actual mass, but I can't figure out why we need that extra gamma. Can anyone enlighten me?
Thanks,
Rory