phaser - v4.0.0-rc.4
    Preparing search index...

    Function PlaceOnLine

    • Positions an array of Game Objects on evenly spaced points of a Line. If the ease parameter is supplied, it will space the points based on that easing function along the line.

      Type Parameters

      Parameters

      • items: G

        An array of Game Objects. The contents of this array are updated by this Action.

      • line: Geom.Line

        The Line to position the Game Objects on.

      • Optionalease: string | Function

        An optional ease to use. This can be either a string from the EaseMap, or a custom function.

      Returns G