{{newin|[[0.9.0]]|090|type=function|text=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 ===
<source lang="lua">
ChainShape:setPreviousVertex( 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.}}
== Other Languages ==
{{i18n|ChainShape:setPreviousVertex}}