Difference between revisions of "Body:getGravityScale"

(Created page with "{{newin|0.8.0|type=method}} Returns the gravity scale factor. == Function == === Synopsis === <source lang="lua"> scale = Body:getGravityScale( ) </source> === Arguments ===...")
 
m (See Also: Add some related functions)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{newin|[[0.8.0]]|type=method}}
+
{{newin|[[0.8.0]]|080|type=method}}
 
Returns the gravity scale factor.
 
Returns the gravity scale factor.
  
Line 13: Line 13:
 
== See Also ==
 
== See Also ==
 
* [[parent::Body]]
 
* [[parent::Body]]
 +
* [[Body:setGravityScale]]
 +
* [[World:setGravity]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Returns the gravity scale factor.}}
 
{{#set:Description=Returns the gravity scale factor.}}
 
{{#set:Since=080}}
 
{{#set:Since=080}}
 +
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Body:getGravityScale}}
 
{{i18n|Body:getGravityScale}}

Latest revision as of 19:26, 25 November 2019

Available since LÖVE 0.8.0
This method is not supported in earlier versions.

Returns the gravity scale factor.

Function

Synopsis

scale = Body:getGravityScale( )

Arguments

None.

Returns

number scale
The gravity scale factor.

See Also


Other Languages