B2.Body:setGravityScale: Difference between revisions

From GiderosMobile
m Text replacement - "<source" to "<syntaxhighlight"
No edit summary
 
Line 1: Line 1:
__NOTOC__
__NOTOC__
<languages />
'''Available since:''' Gideros 2012.2.2.1<br/>
'''Available since:''' Gideros 2012.2.2.1<br/>
'''Class:''' [[Special:MyLanguage/b2.Body|b2.Body]]<br/>
'''Class:''' [[b2.Body]]<br/>


=== Description ===
=== Description ===
Line 10: Line 9:
</syntaxhighlight>
</syntaxhighlight>


'''Note''': increased gravity can decrease stability
Setting the gravity scale to 0 will make your body float.


Setting the gravity scale to 0 will make your body float. You can set a negative number, for example -1 will inverse gravity.
You can set a negative number, for example -1, to inverse gravity.
 
'''Note: increased gravity can decrease stability'''


=== Parameters ===
=== Parameters ===
'''scale''': (number) new gravity scale of the body <br/>
'''scale''': (number) new gravity scale of the body<br/>


{{B2.Body}}
{{B2.Body}}

Latest revision as of 22:02, 30 April 2025