Reverse particle system

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
andras
Prole
Posts: 1
Joined: Thu Jun 14, 2018 12:03 pm

Reverse particle system

Post by andras » Thu Jun 14, 2018 1:29 pm

Hi there,

Is it possible to play a particle system in reverse, so that instead of emitting particles from a point and having them accelerated all over the place, the particles are attracted to a single target? Kind of like a particle system played backwards. I tried pSystem:update(-dt) without luck.

I'm working on the following teleport effect: https://imgur.com/a/6A8Gfyt

I can calculate the location of the teleport target and tweak the particle system's speed and lifetime to have the particles arrive at the target location when everything is standing still, but when the target is moving, the particles arrive at the wrong location. It would be nice to be able to solve it with two particle systems: a regular emitter from the source, and a particle attractor at the target?

Any ideas?

Thanks,
Andras

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 12 guests