{{oldin|[[0.8.0]]|080|type=methods}}
Get the scale of the world.

The world scale is the number of pixels per meter. Try to keep your shape sizes less than 10 times this scale.


This is important because the physics in Box2D is tuned to work well for objects of size 0.1m up to 10m. All physics coordinates are divided by this number for the physics calculations.

== Function ==
=== Synopsis ===
<source lang="lua">
scale = World:getMeter( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|scale|The size of 1 meter in pixels.}}
== See Also ==
* [[parent::World]]
[[Category:Functions]]
{{#set:Description=Get the scale of the world.}}

== Other Languages ==
{{i18n|World:getMeter}}