Add setBoxMassTotal and setSphereMassTotal methods

Would anyone object to me adding setBoxMassTotal and setSphereMassTotal to Body.java? The native methods are already supported.

+1
what would be the difference to setBoxMass ?

SetBoxMass() (and its’ Sphere counterpart) use dimensions and density to determine inertial parameters. setBoxMassTotal (and setSphereMassTotal) use dimensions and the total mass to determine inertial parameters.

I added the methods, along with getMass, getCenterOfMass, and getInertiaTensor methods.