This commit is contained in:
Irlan 2018-04-17 02:38:01 -03:00
parent 1bb6eb9649
commit 9b01af3d70

View File

@ -95,7 +95,7 @@ void b3HullShape::ComputeMass(b3MassData* data, float32 density) const
// We need to compute surface integrals, where the g above is to be integrated along a triangle. // We need to compute surface integrals, where the g above is to be integrated along a triangle.
// Changing coordinates from (x, y, z) to (u, v) a formula for a integral along the triangle is // Changing coordinates from (x, y, z) to (u, v) a formula for a integral along the triangle is
// int(g(x(u, v), y(u, v), z(u, v)) * norm(cross(e1, e2)) * du * dv) // int(g(x(u, v), y(u, v), z(u, v)) * norm(cross(e1, e2)) * du * dv)
// where x, y, and z are given from the parametrization for a triangle // where x, y, and z are given from a parametrization for a triangle
// x = x1 + e1x * u + e2x * v // x = x1 + e1x * u + e2x * v
// y = y1 + e1y * u + e2y * v // y = y1 + e1y * u + e2y * v
// z = z1 + e1z * u + e2z * v // z = z1 + e1z * u + e2z * v