19.4.1
Body
body = physics.Body(mass, inertia)
Parameter |
Type |
Description |
---|---|---|
mass |
in number |
Mass of the body |
inertia |
in number |
The inertia of the body |
body |
out physics.Body |
A new Body with the supplied mass and inertia |
Returns a new Body with the given mass and moment of inertia.
Use the provided helper functions to compute the moment of inertia.
Introduced in platform.apiLevel = '2.0'