Get the center of mass position in world coordinates.

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

== Function ==
=== Synopsis ===
<source lang="lua">
x, y = Body:getWorldCenter( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|x|The x coordinate of the center of mass.}}
{{param|number|y|The y coordinate of the center of mass.}}

== See Also ==
* [[parent::Body]]
[[Category:Functions]]
{{#set:Description=Get the center of mass position in world coordinates.}}
{{#set:Since=000}}

== Other Languages ==
{{i18n|Body:getWorldCenter}}