EdgeShape:getPreviousVertex

EdgeShape:getPreviousVertex

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

Gets the vertex that establishes a connection to the previous shape.

Setting next and previous EdgeShape vertices can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape.

Function

Synopsis

x, y = EdgeShape:getPreviousVertex( )

Arguments

None.

Returns

number x (nil)
The x-component of the vertex, or nil if EdgeShape:setPreviousVertex hasn't been called.
number y (nil)
The y-component of the vertex, or nil if EdgeShape:setPreviousVertex hasn't been called.

See Also

doc_love
2017-03-21 15:43:09
Comments
Leave a Comment

Please login to continue.