ChainShape:getNextVertex

Available since LÖVE 0.10.2
This function is not supported in earlier versions.

Gets the vertex that establishes a connection to the next shape.

Setting next and previous ChainShape vertices can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape.

Function

Synopsis

vertex = ChainShape:getNextVertex( )

Arguments

number x
The x-component of the vertex.
number y
The y-component of the vertex.

Returns

Nothing.

See Also

Other Languages