B2.Body:getLocalCenter: Difference between revisions

From GiderosMobile
m Text replacement - "</source" to "</syntaxhighlight"
m Text replacement - "<source" to "<syntaxhighlight"
 
Line 6: Line 6:
=== Description ===
=== Description ===
Returns the local position of the center of mass.
Returns the local position of the center of mass.
<source lang="lua">
<syntaxhighlight lang="lua">
(number), (number) = b2.Body:getLocalCenter()
(number), (number) = b2.Body:getLocalCenter()
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 16:16, 12 July 2023