Garry's Mod Wiki

PhysObj:GetInertia

  Vector PhysObj:GetInertia()

Description

Returns the principal moments of inertia (Ixx, Iyy, Izz) of the physics object, in the local frame, with respect to the center of mass.

Returns

1 Vector angularInertia
The moment of inertia in kg * m^2
The unit conversion between meters and source units in this case is 1 meter ≈ 39.37 source units (100/2.54 exactly)
This value changes proportionally to the physics object's mass (e.g. making the object twice as heavy will result in it having twice the angular inertia)