You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > momentForCircle

19.1.3 momentForCircle

inertia = physics.misc.momentForCircle(mass, innerRadius,
                                       outerRadius, offBody)

Parameter

Type

Description

mass

in number

The mass of the circle

innerRadius

in number

The inner radius of the circle

outerRadius

in number

The outer radius of the circle

offset

in physics.Vect

The offset of the circle from the center of gravity

inertia

out number

The inertia of the circle


This routine computes the moment of inertia for a circle. A solid circle has an inner radius of 0. 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'