W3cubDocs

/LÖVE

ChainShape:setPrevVertex

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

Removed in LÖVE 0.9.0
It has been renamed to ChainShape:setPreviousVertex.

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:setPrevVertex( x, y )

Arguments

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

Returns

Nothing.

See Also


© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/ChainShape:setPrevVertex