love.physics.newPolygonShape

Creates a new PolygonShape.

This shape can have 8 vertices at most, and must form a convex shape.

Function

Synopsis

shape = love.physics.newPolygonShape( body, ... )

Arguments

Body body
The body to attach the shape to.
numbers ...
Vertices of the polygon.

Returns

PolygonShape shape
A new PolygonShape.

See Also


Other Languages