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

    Function PlaceOnTriangle

    • Takes an array of Game Objects and positions them on evenly spaced points around the edges of a Triangle.

      If you wish to pass a Phaser.GameObjects.Triangle Shape to this function, you should pass its geom property.

      Type Parameters

      Parameters

      • items: G

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

      • triangle: Geom.Triangle

        The Triangle to position the Game Objects on.

      • OptionalstepRate: number

        An optional step rate, to increase or decrease the packing of the Game Objects on the lines. Default 1.

      Returns G