Difference between revisions of "ParticleSystem:setLinearAcceleration"
(Created page) |
m (→Arguments) |
||
Line 9: | Line 9: | ||
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|number|xmin | + | {{param|number|xmin|The minimum acceleration along the x axis.}} |
− | {{param|number|ymin | + | {{param|number|ymin|The minimum acceleration along the y axis.}} |
{{param|number|xmax (xmin)|The maximum acceleration along the x axis.}} | {{param|number|xmax (xmin)|The maximum acceleration along the x axis.}} | ||
{{param|number|ymax (ymin)|The maximum acceleration along the y axis.}} | {{param|number|ymax (ymin)|The maximum acceleration along the y axis.}} | ||
+ | |||
=== Returns === | === Returns === | ||
Nothing. | Nothing. |
Latest revision as of 20:26, 23 September 2013
Available since LÖVE 0.9.0 |
It has replaced ParticleSystem:setGravity. |
Sets the linear acceleration (acceleration along the x and y axes) for particles.
Every particle created will accelerate along the x and y axes between xmin,ymin and xmax,ymax.
Function
Synopsis
ParticleSystem:setLinearAcceleration( xmin, ymin, xmax, ymax )
Arguments
number xmin
- The minimum acceleration along the x axis.
number ymin
- The minimum acceleration along the y axis.
number xmax (xmin)
- The maximum acceleration along the x axis.
number ymax (ymin)
- The maximum acceleration along the y axis.
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info