Difference between revisions of "Body:getWorldPoint"

m
m (See Also)
 
Line 15: Line 15:
 
== See Also ==
 
== See Also ==
 
* [[parent::Body]]
 
* [[parent::Body]]
 +
* [[Body:getWorldPoints]]
 +
* [[Body:getLocalPoint]]
 +
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Transform a point from local coordinates to world coordinates.}}
 
{{#set:Description=Transform a point from local coordinates to world coordinates.}}

Latest revision as of 04:24, 30 December 2020

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