Difference between revisions of "Body:getLocalPoints"
(Added Body:getLocalPoints) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
{{param|number|x2|The x position of the second point.}} | {{param|number|x2|The x position of the second point.}} | ||
{{param|number|y2|The y position of the second point.}} | {{param|number|y2|The y position of the second point.}} | ||
+ | {{param|number|...|You can continue passing x and y position of the points.}} | ||
=== Returns === | === Returns === | ||
{{param|number|x1|The transformed x position of the first point.}} | {{param|number|x1|The transformed x position of the first point.}} | ||
Line 17: | Line 18: | ||
{{param|number|x2|The transformed x position of the second point.}} | {{param|number|x2|The transformed x position of the second point.}} | ||
{{param|number|y2|The transformed y position of the second point.}} | {{param|number|y2|The transformed y position of the second point.}} | ||
+ | {{param|number|...|Additional transformed x and y position of the points.}} | ||
== See Also == | == See Also == | ||
* [[parent::Body]] | * [[parent::Body]] |
Latest revision as of 02:50, 3 February 2022
Available since LÖVE 11.4 |
This method is not supported in earlier versions. |
Transforms multiple points from world coordinates to local coordinates.
Function
Synopsis
x1, y1, x2, y2, ... = Body:getLocalPoints( x1, y1, x2, y2, ... )
Arguments
number x1
- The x position of the first point.
number y1
- The y position of the first point.
number x2
- The x position of the second point.
number y2
- The y position of the second point.
number ...
- You can continue passing x and y position of the points.
Returns
number x1
- The transformed x position of the first point.
number y1
- The transformed y position of the first point.
number x2
- The transformed x position of the second point.
number y2
- The transformed y position of the second point.
number ...
- Additional transformed x and y position of the points.
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