Difference between revisions of "B2.Body:getWorldVector"

From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight")
m (Text replacement - "<source" to "<syntaxhighlight")
 
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns the world coordinates of a vector given the local coordinates.
 
Returns the world coordinates of a vector given the local coordinates.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number) = b2.Body:getWorldVector(x,y)
 
(number), (number) = b2.Body:getWorldVector(x,y)
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 18:21, 12 July 2023