Difference between revisions of "Body:getLocalPoint"

m
m (See Also)
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
 
== See Also ==
 
== See Also ==
 
* [[parent::Body]]
 
* [[parent::Body]]
 +
* [[Body:getWorldPoint]]
 +
* [[Body:getWorldPoints]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Transform a point from world coordinates to local coordinates.}}
 
{{#set:Description=Transform a point from world coordinates to local coordinates.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 +
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Body:getLocalPoint}}
 
{{i18n|Body:getLocalPoint}}

Latest revision as of 04:24, 30 December 2020

Transform a point from world coordinates to local coordinates.

Function

Synopsis

localX, localY = Body:getLocalPoint( worldX, worldY )

Arguments

number worldX
The x position in world coordinates.
number worldY
The y position in world coordinates.

Returns

number localX
The x position in local coordinates.
number localY
The y position in local coordinates.

See Also


Other Languages