This commit is contained in:
Irlan 2018-04-18 14:30:19 -03:00
parent 16f5707c86
commit d497fa4a23

View File

@ -101,9 +101,9 @@ void b3HullShape::ComputeMass(b3MassData* data, float32 density) const
// z = z1 + e1z * u + e2z * v // z = z1 + e1z * u + e2z * v
// and 0 <= u, 0 <= v, u + v <= 1 // and 0 <= u, 0 <= v, u + v <= 1
// We can view the surface integral above also as // We can view the surface integral above also as
// int(g * det(D) * du * dv) // int(g * norm(det(J)) * du * dv)
// where D is the Jacobian of the parametrization: // where J is the Jacobian of the parametrization:
// D = cross(e1, e2) // J = [e1 e2]
// We integrate g over [0, 1 - v] and then over [0, 1]. // We integrate g over [0, 1 - v] and then over [0, 1].
// Thus, using the fact that // Thus, using the fact that