Calculate local inerita using the collision shape.