Difference between revisions of "B2.getScale"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 8: Line 8:
  
 
(Please refer to [[b2.setScale]] function for more information about pixels to meters scaling).
 
(Please refer to [[b2.setScale]] function for more information about pixels to meters scaling).
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number) = b2.getScale()
 
(number) = b2.getScale()
 
</source>
 
</source>

Revision as of 14:26, 13 July 2023


Available since: Gideros 2011.6
Class: b2

Description

Returns the global pixels to meters scale.

(Please refer to b2.setScale function for more information about pixels to meters scaling). <syntaxhighlight lang="lua"> (number) = b2.getScale() </source>

Return values

Returns (number) the global pixels to meters scale





LiquidFun