{{newin|[[0.8.0]]|080|type=function}}
Sets a vertex that establishes a connection to the next 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:setNextVertex( 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:setPreviousVertex]]
[[Category:Functions]]
{{#set:Description=Sets a vertex that establishes a connection to the next shape.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|ChainShape:setNextVertex}}