PolygonShape

Polygon is a convex polygon with up to 8 sides.

Create a new polygon shape with love.physics.newPolygonShape or love.physics.newRectangleShape.

Functions

PolygonShape:getPointsGet the local coordinates of the polygon's vertices.
PolygonShape:validateValidates whether the PolygonShape is convex.
Object:releaseImmediately destroys the object's Lua reference.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Supertypes

Shape Object

See Also

Other Languages