mooball
    Preparing search index...

    Interface AddSegmentParams

    interface AddSegmentParams {
        bCoef?: number;
        bias?: number;
        cGroup?: UnparsedCollisionFlags;
        cMask?: UnparsedCollisionFlags;
        color?: UnparsedColor;
        curve?: number;
        curveF?: number;
        v0: number;
        v1: number;
        vis?: boolean;
    }
    Index

    Properties

    bCoef?: number

    Bouncing coefficient of the new segment.

    bias?: number

    Bias of the new segment.

    Collision group of the new segment.

    Collision mask of the new segment.

    Color of the new segment.

    curve?: number

    Curve of the new segment. (unit: angles)

    curveF?: number

    Curve of the new segment. (unit: radians) While modifying this, the engine does not update some values. Only use this if you know what you are doing.

    v0: number

    Index of the first vertex of the new segment.

    v1: number

    Index of the second vertex of the new segment.

    vis?: boolean

    Visibility of the new segment.