Difference between revisions of "Body:getWorldPoint"

m (1 revision: Importing from potato (again).)
m (included link to other languages)
Line 1: Line 1:
 +
Transform a point from local coordinates to world coordinates.
  
Transform a point from local coordinates to world coordinates.
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 12: Line 12:
 
{{param|number|world_x|The x position in world coordinates.}}
 
{{param|number|world_x|The x position in world coordinates.}}
 
{{param|number|world_y|The y position in world coordinates.}}
 
{{param|number|world_y|The y position in world coordinates.}}
 +
 
== See Also ==
 
== See Also ==
 
* [[parent::Body]]
 
* [[parent::Body]]
 
[[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.}}
 +
 +
== Other Languages ==
 +
{{i18n|Body:getWorldPoint}}

Revision as of 22:17, 28 January 2011

Transform a point from local coordinates to world coordinates.

Function

Synopsis

world_x, world_y = Body:getWorldPoint( local_x, local_y )

Arguments

number local_x
The x position in local coordinates.
number local_y
The y position in local coordinates.

Returns

number world_x
The x position in world coordinates.
number world_y
The y position in world coordinates.

See Also


Other Languages