Polygon

Returns a Polygon collision shape object

new virtuosity.collisionManager.shape.Polygon(points);


Parameter Type Description
points [Point] points of the Polygon. Can be made up of Points, arrays setup like: [x, y], or a combination.

Methods

Properties


Methods

set

set Polygon points. Can be made up of Points, arrays setup like: [x, y], or a combination.

virtuosity.collisionManager.shape.Polygon.set();


Properties

points

[Point]

points of the polygon

virtuosity.collisionManager.shape.Polygon.points