{{newin|[[0.10.2]]|102|type=function}}
Gets the vertex that establishes a connection to the next shape.

Setting next and previous ChainShape vertices 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">
x, y = ChainShape:getNextVertex( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|x (nil)|The x-component of the vertex, or nil if [[ChainShape:setNextVertex]] hasn't been called.}}
{{param|number|y (nil)|The y-component of the vertex, or nil if [[ChainShape:setNextVertex]] hasn't been called.}}

== See Also ==
* [[parent::ChainShape]]
* [[ChainShape:setNextVertex]]
* [[ChainShape:getPreviousVertex]]
[[Category:Functions]]
{{#set:Description=Gets the vertex that establishes a connection to the next shape.}}
== Other Languages ==
{{i18n|ChainShape:getNextVertex}}