Difference between revisions of "Body:getWorldVector"

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

Revision as of 10:42, 25 March 2011

Transform a vector from local coordinates to world coordinates.

Function

Synopsis

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

Arguments

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

Returns

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

See Also


Other Languages