mooball
    Preparing search index...

    Class Disc

    A class that defines a disc.

    Index

    Constructors

    Properties

    bCoef: number

    The bouncing coefficient of this Disc.

    cGroup: number

    The collision group of this Disc.

    cMask: number

    The collision mask of this Disc.

    color: number

    The color of this 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 damping value of this Disc.

    gravity: Point

    The gravity of this Disc.

    invMass: number

    The 1/mass value of this Disc.

    pos: Point

    The position of this Disc.

    radius: number

    The radius of this Disc.

    speed: Point

    The speed of this Disc.

    textId: number

    The text id of this Disc. -1 = empty.

    textureId: number

    The texture id of this Disc. -1 = empty.