{{newin|[[0.10.2]]|102|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">
EdgeShape: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::EdgeShape]]
* [[EdgeShape:getNextVertex]]
* [[EdgeShape:setPreviousVertex]]
[[Category:Functions]]
{{#set:Description=Sets a vertex that establishes a connection to the next shape.}}
== Other Languages ==
{{i18n|EdgeShape:setNextVertex}}