Download Now

    Reference MomentForCircle

    Declared in Codebot.Physics.pas on lines 98, 99

    Mass and area helpers, which are useful when setting the mass and moment of a body directly instead of using the density of its shapes. Circles use an inner and outer radius, where a solid circle has an inner radius of 0.
    function MomentForCircle(Mass, InnerRadius, OuterRadius: Float): Float; overload;
    function MomentForCircle(Mass, InnerRadius, OuterRadius: Float; const Offset: TVec2): Float; overload;

    See also

    Float in Codebot.System.pas
    TVec2 in Codebot.Geometry.pas