Difference between revisions of "Body:getLocalPoint"

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

Revision as of 07:47, 28 January 2011

Transform a point from world coordinates to local coordinates.

Function

Synopsis

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

Arguments

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

Returns

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

See Also


Other Languages