Difference between revisions of "Body:getLocalCenter"
m (1 revision: Imported docs from potato.) |
|||
Line 1: | Line 1: | ||
+ | Get the center of mass position in local coordinates. | ||
+ | |||
+ | Use [[Body:getWorldCenter]] to get the center of mass in world coordinates. | ||
== Function == | == Function == | ||
Line 14: | Line 17: | ||
* [[parent::Body]] | * [[parent::Body]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=}} | + | {{#set:Description=Get the center of mass position in local coordinates. |
+ | }} |
Revision as of 16:17, 14 February 2010
Get the center of mass position in local coordinates.
Use Body:getWorldCenter to get the center of mass in world coordinates.
Function
Synopsis
x, y = Body:getLocalCenter( )
Arguments
None.