Hi there, I'm using Spark (and loving it so far), and I had a question. I'm trying to implement a system that creates one emitter object, which feeds into a group. I want to be able to change the emitter type dynamically. In my class, I have something like this:
pointerToCurrentEmitterObject = SphericalEmitter::Create(...);
and the Group class adds this pointer later. Now, at some point, I want to change this to a Straight emitter:
Emitter* tmpEmitter = pointerToCurrentEmitterObject;
pointerToCurrentEmitterObject = StraightEmitter::Create(...);
if (tmpEmitter) delete tmpEmitter;
However, what happens is that the Spherical emitter stops, and the Striaght emitter doesn't work. I'm guessing that something underneath needs updating. Any thoughts on how I could do this?