Difference between revisions of "B2.Body:getLocalVector"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns the local coordinates of a vector given the world coordinates.
 
Returns the local coordinates of a vector given the world coordinates.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number) = b2.Body:getLocalVector(x,y)
 
(number), (number) = b2.Body:getLocalVector(x,y)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 18:13, 12 July 2023