Description

Polygons define the entity

Usage

Parameters

  • array {Array}

    The array contains two tables including the positions of point polygons. The order of elements define the shape of polygons.

Example

In ready method

 var entity = Class.New("Entity", [stage]);
 entity.polygon([
    [0, 0],
    [50, 40],
    [0, 40]
 ]);

Discussion