Difference between revisions of "Body:getWorldPoint"
m |
|||
Line 4: | Line 4: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | worldX, worldY = Body:getWorldPoint( localX, localY ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|number| | + | {{param|number|localX|The x position in local coordinates.}} |
− | {{param|number| | + | {{param|number|localY|The y position in local coordinates.}} |
=== Returns === | === Returns === | ||
− | {{param|number| | + | {{param|number|worldX|The x position in world coordinates.}} |
− | {{param|number| | + | {{param|number|worldY|The y position in world coordinates.}} |
== See Also == | == See Also == |
Revision as of 10:12, 26 January 2016
Transform a point from local coordinates to world coordinates.
Function
Synopsis
worldX, worldY = Body:getWorldPoint( localX, localY )
Arguments
number localX
- The x position in local coordinates.
number localY
- The y position in local coordinates.
Returns
number worldX
- The x position in world coordinates.
number worldY
- The y position in world coordinates.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info