BEPUphysics.Constraints.TwoEntity.JointLimits.RevoluteLimit.GetMassMatrix C# (CSharp) Method

GetMassMatrix() public method

Gets the mass matrix of the revolute limit. The revolute limit is special; in terms of solving, it is actually sometimes TWO constraints; a minimum plane, and a maximum plane. The M11 field represents the minimum plane mass matrix and the M22 field represents the maximum plane mass matrix.
public GetMassMatrix ( Matrix2x2 &massMatrix ) : void
massMatrix BEPUutilities.Matrix2x2 Mass matrix of the constraint.
return void
        public void GetMassMatrix(out Matrix2x2 massMatrix)
        {
            massMatrix.M11 = velocityToImpulse.X;
            massMatrix.M22 = velocityToImpulse.Y;
            massMatrix.M12 = 0;
            massMatrix.M21 = 0;
        }