Difference between revisions of "B2.Body:setGravityScale"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
=== Description ===
 
=== Description ===
 
Strengthens or weakens the effect of the world gravity on a body.
 
Strengthens or weakens the effect of the world gravity on a body.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
b2.Body:setGravityScale(scale)
 
b2.Body:setGravityScale(scale)
</source>
+
</syntaxhighlight>
  
 
'''Note''': increased gravity can decrease stability
 
'''Note''': increased gravity can decrease stability

Latest revision as of 16:59, 12 July 2023