Difference between revisions of "Body:getLocalVector"

m (included link to other languages)
Line 17: Line 17:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Transform a vector from world coordinates to local coordinates.}}
 
{{#set:Description=Transform a vector from world coordinates to local coordinates.}}
 +
{{#set:Since=000}}
  
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Body:getLocalVector}}
 
{{i18n|Body:getLocalVector}}

Revision as of 11:40, 25 March 2011

Transform a vector from world coordinates to local coordinates.

Function

Synopsis

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

Arguments

number world_x
The vector x component in world coordinates.
number world_y
The vector y component in world coordinates.

Returns

number local_x
The vector x component in local coordinates.
number local_y
The vector y component in local coordinates.

See Also


Other Languages