mooball
    Preparing search index...

    Interface AddPlayerParams

    interface AddPlayerParams {
        avatar: string;
        bCoef?: number;
        cGroup?: UnparsedCollisionFlags;
        cMask?: UnparsedCollisionFlags;
        damping?: number;
        flag: string;
        gravity?: [x: number, y: number];
        id: number;
        invMass?: number;
        name: string;
        pos?: [x: number, y: number];
        radius?: number;
        speed?: [x: number, y: number];
        team: UnparsedTeam3;
    }
    Index

    Properties

    avatar: string

    The avatar of the new player.

    bCoef?: number

    The bouncing coefficient of the new player. Team must not be "spec".

    The collision group of the new player. Team must not be "spec".

    The collision mask of the new player. Team must not be "spec".

    damping?: number

    The damping of the new player. Team must not be "spec".

    flag: string

    The country code of the new player.

    gravity?: [x: number, y: number]

    The gravity (acceleration) of the new player. Team must not be "spec".

    id: number

    The id the new player. Already existing ids should not be used. 0 < id < 65535.

    invMass?: number

    The inverse mass of the new player. Team must not be "spec".

    name: string

    The name of the new player.

    pos?: [x: number, y: number]

    The position of the new player. Team must not be "spec".

    radius?: number

    The radius of the new player. Team must not be "spec".

    speed?: [x: number, y: number]

    The speed of the new player. Team must not be "spec".

    The team of the new player. If this is "spec", the keys after this are ignored. Otherwise, player is moved to the specified team, a player disc is automatically generated and the below values are applied to the new disc.