Difference between revisions of "ChainShape:setPrevVertex"

(Added ChainShape:setPrevVertex.)
 
m
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.

Revision as of 15:23, 31 July 2012

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

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

ChainShape:setPrevVertex( 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