25 #ifndef GIMPACT_MASS_UTIL_H
26 #define GIMPACT_MASS_UTIL_H
44 btScalar ix = rotatedTensor[0][0]*(y2+z2);
45 btScalar iy = rotatedTensor[1][1]*(x2+z2);
46 btScalar iz = rotatedTensor[2][2]*(x2+y2);
48 return btVector3(source_inertia[0]+ix,source_inertia[1]+iy,source_inertia[2] + iz);
56 return btVector3(mass*(y2+z2),mass*(x2+z2),mass*(x2+y2));
60 #endif //GIMPACT_MESH_SHAPE_H