ChainShape:setPreviousVertex

Available since LÖVE 0.9.0
It has been renamed from ChainShape:setPrevVertex.

Sets a vertex that establishes a connection to the previous shape.

This can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape.

Function

Synopsis

ChainShape:setPreviousVertex( x, y )

Arguments

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

Returns

Nothing.

See Also

Other Languages

Personal tools