ParticleSystem setDirection issue

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
codinghands
Prole
Posts: 11
Joined: Fri May 17, 2013 7:40 am

ParticleSystem setDirection issue

Post by codinghands »

I'm trying to get a ParticleSystem to emit in a single direction, with a spread around a given point, something like:
9QlKKtg.png
9QlKKtg.png (20.43 KiB) Viewed 244 times
I've set direction to 39deg in rad, and spread to 78deg in rad, but the system is emitting both toward the top left and the bottom right.

How can I configure the system to only emit towards the top left?
codinghands
Prole
Posts: 11
Joined: Fri May 17, 2013 7:40 am

Re: ParticleSystem setDirection issue

Post by codinghands »

Ah not to worry, I had setSpeed to neg and pos values causing this. Seems to be fixed by changing both to neg values.

Cheers.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests