Difference between revisions of "Body:getLocalPoint"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Transform a point from world coordinates to local coordinates.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 15: Line 15:
 
* [[parent::Body]]
 
* [[parent::Body]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Transform a point from world coordinates to local coordinates.}}

Revision as of 16:17, 14 February 2010

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