Esempio n. 1
0
        static float k_scalar_body(cpBody body, cpVect point, cpVect n)
        {
            float rcn = cpVect.cpvcross(cpVect.cpvsub(point, body.GetPosition()), n);

            return(1.0f / body.GetMass() + rcn * rcn / body.GetMoment());
        }