19.4.23
setMoment
self = physics.Body:setMoment(moment)
Parameter |
Type |
Description |
---|---|---|
self |
in physics.Body |
The input Body |
moment |
in number |
The moment of inertia of the Body |
self |
out physics.Body |
The input Body is returned as the output |
Updates
the moment of inertia of the body.
Use the provided helper functions to compute the moment of inertia.
Returns the Body.
.Introduced in platform.apiLevel = '2.0'