Function
Body:getY( )
This function gets only the y-component, which may be useful in rare cases. Normally though, you would want to get both x- and y-components, in which case Body:getPosition is more appropriate.
Synopsis
y = Body:getY( )
Arguments
(None)
Returns
number The y-component of the position.
See Also
Copyright © 2006-2008 LÖVE Development Team.