love.physics.newChainShape
Creates a new ChainShape.
shape = love.physics.newChainShape( loop, x1, y1, x2, y2, ... )
loop boolean If the chain should loop back to the first point.
x1 number The x position of the first point.
y1 number The y position of the first point.
x2 number The x position of the second point.
y2 number The y position of the second point.
... number Additional point positions.
shape ChainShape The new shape.
shape = love.physics.newChainShape( loop, points )
loop boolean If the chain should loop back to the first point.
points table A list of points to construct the ChainShape, in the form of {x1, y1, x2, y2, ...}.
shape ChainShape The new shape.