Garry's Mod Wiki

Revision Difference

PhysObj:GetInertia#546341

<function name="GetInertia" parent="PhysObj" type="classfunc"> <description>Returns the directional inertia of the physics object.</description> <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.</description> <realm>Shared</realm> <rets> <ret name="" type="Vector">directionalInertia</ret>⤶ <ret name="angularInertia" type="Vector">The moment of inertia in `kg * m^2`⤶ <note>The unit conversion between meters and source units in this case is `1 meter ≈ 39.37 source units (100/2.54 exactly)`</note>⤶ </ret>⤶ </rets> </function>