B2.Body:getLocalPoint: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
(number), (number) = b2.Body:getLocalPoint(x,y) | (number), (number) = b2.Body:getLocalPoint(x,y) | ||
</source> | </source> | ||
'''x''': (number) x coordinate of the world point | === Parameters === | ||
'''y''': (number) y coordinate of the world point | '''x''': (number) x coordinate of the world point <br/> | ||
'''y''': (number) y coordinate of the world point <br/> | |||
=== Return values === | |||
'''Returns''' (number) x coordinate of the provided point expressed in local coordinates<br/> | '''Returns''' (number) x coordinate of the provided point expressed in local coordinates<br/> | ||
'''Returns''' (number) y coordinate of the provided point expressed in local coordinates<br/> | '''Returns''' (number) y coordinate of the provided point expressed in local coordinates<br/> | ||
Revision as of 09:44, 23 August 2018
Available since: Gideros 2012.09.6
Description
Returns the local coordinates of a point given the world coordinates.
(number), (number) = b2.Body:getLocalPoint(x,y)
Parameters
x: (number) x coordinate of the world point
y: (number) y coordinate of the world point
Return values
Returns (number) x coordinate of the provided point expressed in local coordinates
Returns (number) y coordinate of the provided point expressed in local coordinates