ParticleSystem:setLinearAcceleration

ParticleSystem:setLinearAcceleration

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

doc_love
2017-03-21 15:51:52
Comments
Leave a Comment

Please login to continue.