Difference between revisions of "ChainShape:setNextVertex"

(Added ChainShape:setNextVertex.)
 
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{newin|[[0.8.0]]|080|type=method}}
+
{{newin|[[0.8.0]]|080|type=function}}
 
Sets a vertex that establishes a connection to the next shape.
 
Sets a vertex that establishes a connection to the next shape.
  
Line 11: Line 11:
 
=== Arguments ===
 
=== Arguments ===
 
{{param|number|x|The x-component of the vertex.}}
 
{{param|number|x|The x-component of the vertex.}}
{{param|number|x|The x-component of the vertex.}}
+
{{param|number|y|The y-component of the vertex.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 17: Line 17:
 
== See Also ==
 
== See Also ==
 
* [[parent::ChainShape]]
 
* [[parent::ChainShape]]
* [[ChainShape:setPrevVertex]]
+
* [[ChainShape:setPreviousVertex]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Sets a vertex that establishes a connection to the next shape.}}
 
{{#set:Description=Sets a vertex that establishes a connection to the next shape.}}

Latest revision as of 21:07, 30 October 2016

Available since LÖVE 0.8.0
This function is not supported in earlier versions.

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

ChainShape:setNextVertex( x, y )

Arguments

number x
The x-component of the vertex.
number y
The y-component of the vertex.

Returns

Nothing.

See Also


Other Languages