Commit a70e27e9 authored by Felix Winterhalter's avatar Felix Winterhalter
Browse files

calcInertia of Sphere is called with the wrong argument order. The sphere...

calcInertia of Sphere is called with the wrong argument order. The sphere moment of inertia is completely wrong.
parent 934a270b
......@@ -90,7 +90,7 @@ Sphere::Sphere( id_t const typeId, id_t sid, id_t uid, const Vec3& gpos, const V
} else
{
auto mass = calcMass( radius, Material::getDensity( material ) );
setMassAndInertia( mass, calcInertia( radius, mass ) );
setMassAndInertia( mass, calcInertia( mass, radius ) );
}
setCommunicating( communicating );
setFinite( true );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment