boxInertia

@three-blocks/pro
boxInertia(mass : number, width : number, height : number, depth : number) : number

Calculate moment of inertia for a box.

Parameters
massnumber
Body mass
widthnumber
Box width
heightnumber
Box height
depthnumber
Box depth
Returns
number — Moment of inertia (averaged of principal axes)