Difference between revisions of "Body:getWorldVector"
m (1 revision: Importing from potato (again).) |
m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | Transform a vector from local coordinates to world coordinates. | ||
− | |||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | worldX, worldY = Body:getWorldVector( localX, localY ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|number| | + | {{param|number|localX|The vector x component in local coordinates.}} |
− | {{param|number| | + | {{param|number|localY|The vector y component in local coordinates.}} |
=== Returns === | === Returns === | ||
− | {{param|number| | + | {{param|number|worldX|The vector x component in world coordinates.}} |
− | {{param|number| | + | {{param|number|worldY|The vector y component in world coordinates.}} |
+ | |||
== See Also == | == See Also == | ||
* [[parent::Body]] | * [[parent::Body]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Transform a vector from local coordinates to world coordinates.}} | {{#set:Description=Transform a vector from local coordinates to world coordinates.}} | ||
+ | {{#set:Since=000}} | ||
+ | |||
+ | == Other Languages == | ||
+ | {{i18n|Body:getWorldVector}} |
Latest revision as of 10:13, 26 January 2016
Transform a vector from local coordinates to world coordinates.
Function
Synopsis
worldX, worldY = Body:getWorldVector( localX, localY )
Arguments
number localX
- The vector x component in local coordinates.
number localY
- The vector y component in local coordinates.
Returns
number worldX
- The vector x component in world coordinates.
number worldY
- The vector y component 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