Difference between revisions of "Body:getWorldVector"
m (1 revision: Imported docs from potato.) |
|||
Line 1: | Line 1: | ||
− | + | Transform a vector from local coordinates to world coordinates. | |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
Line 15: | Line 15: | ||
* [[parent::Body]] | * [[parent::Body]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=}} | + | {{#set:Description=Transform a vector from local coordinates to world coordinates.}} |
Revision as of 16:17, 14 February 2010
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.