{{newin|[[0.8.0]]|080|type=function}}
{{oldin|[[0.9.0]]|090|type=function|text=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 ===
<source lang="lua">
ChainShape:setPrevVertex( x, y )
</source>
=== Arguments ===
{{param|number|x|The x-component of the vertex.}}
{{param|number|y|The y-component of the vertex.}}
=== Returns ===
Nothing.

== See Also ==
* [[parent::ChainShape]]
* [[ChainShape:setNextVertex]]
[[Category:Functions]]
{{#set:Description=Sets a vertex that establishes a connection to the previous shape.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|ChainShape:setPrevVertex}}