Difference between revisions of "Body:getLocalVector"
m (included link to other languages) |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | localX, localY = Body:getLocalVector( worldX, worldY ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|number| | + | {{param|number|worldX|The vector x component in world coordinates.}} |
− | {{param|number| | + | {{param|number|worldY|The vector y component in world coordinates.}} |
=== Returns === | === Returns === | ||
− | {{param|number| | + | {{param|number|localX|The vector x component in local coordinates.}} |
− | {{param|number| | + | {{param|number|localY|The vector y component in local coordinates.}} |
== See Also == | == See Also == | ||
Line 17: | Line 17: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Transform a vector from world coordinates to local coordinates.}} | {{#set:Description=Transform a vector from world coordinates to local coordinates.}} | ||
+ | {{#set:Since=000}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|Body:getLocalVector}} | {{i18n|Body:getLocalVector}} |
Latest revision as of 10:10, 26 January 2016
Transform a vector from world coordinates to local coordinates.
Function
Synopsis
localX, localY = Body:getLocalVector( worldX, worldY )
Arguments
number worldX
- The vector x component in world coordinates.
number worldY
- The vector y component in world coordinates.
Returns
number localX
- The vector x component in local coordinates.
number localY
- The vector y component in local 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