havokPlugin physics

code

If not provided, the physics engine will compute an appropriate value.

I want to know how this value is calculated. I need codes

Mass properties are computed here :

You can change default density of a shape with

If I set mass=20、 centerOfMass==[0,-0.5, 0] and inertia=[1,0,1].
Will inertia be affected by mass centerOfMass and then be recalculated?
After the physical body is created, is the value of inertia calculated based on the mass center of mass or set by the user [1,0,1]?

Defaults values are computed and are then overriden by what user provides :