inertia = physics.misc.momentForBox(mass, width, height)
|
Parameter |
Type |
Description |
|---|---|---|
|
mass |
in number |
The mass of the box |
|
width |
in number |
The width of the box |
|
height |
in number |
The height of the box |
|
inertia |
out number |
The inertia of the box |
This routine computes the moment of inertia for a solid box. This is a
useful helper routine for computing the moment of inertia as an input to the
physics.Body(...) constructor.
Introduced in platform.apiLevel = '2.0'