Commits

Martin Felis committed 82800a8

luamodel: default value for inertia matrices is now the unit matrix

Comments (0)

Files changed (1)

addons/luamodel/luamodel.cc

 		double mass = 0.;
 		Vector3d com (0., 0., 0.);
 		Matrix3d inertia (Matrix3d::Zero(3,3));
+		inertia(0,0) = 1.;
+		inertia(1,1) = 1.;
+		inertia(2,2) = 1.;
 
 		if (ltIsExisting (L, (path + ".body.mass").c_str()) ) {
 			mass = ltGetDouble (L, (path + ".body.mass").c_str());