Calculate box inertia

Now boxes rotate correctly.