Fields
optionalwidth:Null<Float>
If the Shape is a Rect, it's width will be taken from this value. Otherwise this is ignored.
If this value is set and height isnt, the Rect will use this value for it's height.
optionalvertices:Null<Array<Vector2>>
If the Shape is a Polygon, this will create one in the shape of the vectors passed in. Otherwise this is ignored.
optionaltype:Null<ShapeType>
Enum describing the Shape to create. Currently supports RECT and CIRCLE.
optionalsides:Null<Int>
If the Shape is a Polygon, this will determine how many faces the Polygon will generate. Otherwise this is ignored.
If vertices
is set, this will be overriden.