Constructor


PolygonCollider(parent: Object, points: number, mode: number)

Arguments:

parent: Object

The base class of all objects in Kristal.
When added to the stage, an object will be updated and rendered.

points: number
mode: number




Methods


PolygonCollider:collidesWith(other: any)

Arguments:

other: any

Returns:

1: boolean|unknown


PolygonCollider:draw(r: any, g: any, b: any, a: any)

Arguments:

r: any
g: any
b: any
a: any


PolygonCollider:drawFill(r: any, g: any, b: any, a: any)

Arguments:

r: any
g: any
b: any
a: any


PolygonCollider:getShapeFor(other: any)

Arguments:

other: any



Undocumented