Function
Body:getWorldCenter( )
Get the center of mass position in world coordinates.

Use Body:getLocalCenter to get the center of mass in local coordinates.

Synopsis
x, y = Body:getWorldCenter( )
Returns
x number The x coordinate of the center of mass.
y number The y coordinate of the center of mass.
See Also
Body:getLocalCenter  
Copyright © 2006-2010 LÖVE Development Team.