mooball
    Preparing search index...

    Type Alias MovableDisc

    A class that defines an active disc.

    type MovableDisc = {
        bCoef: number;
        cGroup: int;
        cMask: int;
        color: int;
        damping: number;
        ext: MovableDisc | null;
        gravity: Point;
        invMass: number;
        playerId: uint16 | null;
        pos: Point;
        radius: number;
        speed: Point;
        textId: int16;
        textureId: int16;
    }
    Index

    Properties

    bCoef: number

    The bouncing coefficient of this Disc.

    cGroup: int

    The collision group of this Disc.

    cMask: int

    The collision mask of this Disc.

    color: int

    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.

    ext: MovableDisc | null

    The extrapolated version of this Disc, or null if the data is not available.

    gravity: Point

    The gravity(acceleration) of this Disc.

    invMass: number

    The 1/mass value of this Disc.

    playerId: uint16 | null

    Id of the player that owns this Disc, or null if it is not owned by a player.

    pos: Point

    The position of this Disc.

    radius: number

    The radius of this Disc.

    speed: Point

    The speed of this Disc.

    textId: int16

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

    textureId: int16

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