B2.Body:getWorldCenter: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "</source" to "</syntaxhighlight"
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
=== Description ===
=== Description ===
Returns the world position of the center of mass.
Returns the world position of the center of mass.
<source lang="lua">
<syntaxhighlight lang="lua">
(number), (number) = b2.Body:getWorldCenter()
(number), (number) = b2.Body:getWorldCenter()
</source>
</syntaxhighlight>


=== Return values ===
=== Return values ===

Latest revision as of 16:21, 12 July 2023