Difference between revisions of "Body:setMass"
m (1 revision: Importing from potato (again).) |
m (included link to other languages) |
||
Line 1: | Line 1: | ||
− | |||
Sets the mass properties directly. | Sets the mass properties directly. | ||
Line 25: | Line 24: | ||
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
+ | |||
== See Also == | == See Also == | ||
* [[parent::Body]] | * [[parent::Body]] | ||
Line 30: | Line 30: | ||
{{#set:Description=Sets the mass properties directly. | {{#set:Description=Sets the mass properties directly. | ||
}} | }} | ||
+ | |||
+ | == Other Languages == | ||
+ | {{i18n|Body:setMass}} |
Revision as of 09:07, 30 January 2011
Sets the mass properties directly.
If you're not sure what all this stuff means, you can use Body:setMassFromShapes after adding shapes instead.
The first two parameters will be the local coordinates of the Body's center of mass.
The third parameter is the mass, in kilograms.
The last parameter is the rotational inertia.
Function
Synopsis
Body:setMass( x, y, m, i )
Arguments
number x
- The x-component of the center of mass in local coordinates.
number y
- The y-component of the center of mass in local coordinates.
number m
- The mass, in kilograms.
number i
- The rotational inertia, in kilograms per squared meter.
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info