mooball
    Preparing search index...

    Interface SetDiscPropertiesParams

    interface SetDiscPropertiesParams {
        bCoeff?: number;
        cGroup?: number;
        cMask?: number;
        color?: number;
        damping?: number;
        invMass?: number;
        radius?: number;
        x?: number;
        xgravity?: number;
        xspeed?: number;
        y?: number;
        ygravity?: number;
        yspeed?: number;
    }
    Index

    Properties

    bCoeff?: number

    The new bouncing coefficient of the disc.

    cGroup?: number

    The new collision group value of the disc.

    cMask?: number

    The new collision mask value of the disc.

    color?: number

    The new color of the disc. Range: -1 <= color < 16777216.

    • This value can be converted into a rgba string via API's Utils.numberToColor function.
    • The special value -1 means transparent color.
    damping?: number

    The new damping value of the disc.

    invMass?: number

    The new 1/mass value of the disc.

    radius?: number

    The new radius of the disc.

    x?: number

    The new x coordinate of the disc's position.

    xgravity?: number

    The new x component of the disc's gravity(acceleration).

    xspeed?: number

    The new x component of the disc's speed.

    y?: number

    The new y coordinate of the disc's position.

    ygravity?: number

    The new y component of the disc's gravity(acceleration).

    yspeed?: number

    The new y component of the disc's speed.