Function
Body:setX( x )
In rare cases, you might want to set just the x-component of a Body, but when you need to set both components, you should use Body:setPosition.
Synopsis
Body:setX( x )
Arguments
x The new x-component.
Returns
(Nothing)
See Also
Copyright © 2006-2008 LÖVE Development Team.