Difference between revisions of "World:setMeter"

(Initial Portuguese translation)
m (Undo revision 4939 by Minicz (Talk))
Line 1: Line 1:
Configura a escala do mundo.
+
Set the scale of the world.
  
A escala do mundo é o número de pixels por metros. Tente manter os tamanhos de suas formas menor do que 10 vezes esta escala.
+
The world scale is the number of pixels per meter. Try to keep your shape sizes less than 10 times this scale.
  
A escala padrão para novos mundos é de 30 pixels/metro.
+
The default scale for new worlds is 30 pixels per meter.
  
Isso é importante porque a física no Box2D é ajustada para trabalhar melhor para objetos de tamanho 0.1 m até 10 m. Todas as coordenadas físicas são divididas por este número para os cálculos físicos.
+
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.
== Função ==
+
 
=== Sinapse ===
+
== Function ==
 +
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
World:setMeter( escala )
+
World:setMeter( scale )
 
</source>
 
</source>
=== Argumentos ===
+
=== Arguments ===
{{param|number (Português)|escala|O tamanho de 1 metro em pixels.}}
+
{{param|number|scale|The size of 1 meter in pixels.}}
=== Retornos ===
+
=== Returns ===
Nada.
+
Nothing.
== Veja Também ==
+
== See Also ==
* [[parent::World (Português)]]
+
* [[parent::World]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Configura a escala do mundo.}}
+
{{#set:Description=Set the scale of the world.
== Outros Idiomas ==
+
}}
 +
== Other Languages ==
 
{{i18n|World:setMeter}}
 
{{i18n|World:setMeter}}

Revision as of 14:32, 22 January 2011

Set 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.

The default scale for new worlds is 30 pixels per meter.

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

World:setMeter( scale )

Arguments

number scale
The size of 1 meter in pixels.

Returns

Nothing.

See Also

Other Languages