Difference between revisions of "Body:setMassFromShapes"
m (Updated oldin notice to reflect method, and not function type) |
|||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{oldin|[[0.8.0]]|080|type=method}} | |
Sets mass properties from attatched shapes. | Sets mass properties from attatched shapes. | ||
Line 16: | Line 16: | ||
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
+ | |||
== See Also == | == See Also == | ||
* [[parent::Body]] | * [[parent::Body]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Sets mass properties from attatched shapes. | + | {{#set:Description=Sets mass properties from attatched shapes.}} |
− | }} | + | {{#set:Since=000}} |
+ | |||
+ | == Other Languages == | ||
+ | {{i18n|Body:setMassFromShapes}} |
Latest revision as of 16:02, 17 April 2012
Removed in LÖVE 0.8.0 |
This method is not supported in that and later versions. |
Sets mass properties from attatched shapes.
If you feel that finding the correct mass properties is tricky, then this function may be able to help you. After creating the needed shapes on the Body, a call to this function will set the mass properties based on those shapes. Remember to call this function after adding the shapes.
Setting the mass properties this way always results in a realistic (or at least good-looking) simulation, so using it is highly recommended.
Function
Synopsis
Body:setMassFromShapes( )
Arguments
None.
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