Creates a new PolygonShape.
This shape can have 8 vertices at most, and must form a convex shape.
Available since LÖVE 0.8.0 |
This variant is not supported in earlier versions. |
shape = love.physics.newPolygonShape( x1, y1, x2, y2, x3, y3, ... )
number x1
number y1
number x2
number y2
number x3
number y3
number ...
PolygonShape shape
Available since LÖVE 0.9.2 |
This variant is not supported in earlier versions. |
shape = love.physics.newPolygonShape( vertices )
table vertices
{x1, y1, x2, y2, x3, y3, ...}
.PolygonShape shape
Removed in LÖVE 0.8.0 |
This variant is not supported in that and later versions. |
shape = love.physics.newPolygonShape( body, ... )
Body body
numbers ...
PolygonShape shape