Hi there
I am having a frustrating and strange problem. I am building a particle system. As a result I need particles to reset there variables to be reintroduced into the system.
I have had it working in the past.
I run through the system once, when the particles pass a threshold they should then reset there variables.
The function I have to do this is simply
particlesToRender[i].x = 20;// + rand() % 20;
particlesToRender[i].y = 1;
particlesToRender[i].z = -20;// + rand() % -5;
particlesToRender[i].temperature = 100;
particlesToRender[i].active = true;
I have experimented and the x,y and z variables all seem to reset fine however the temperature does not?
Is there any reason as to why this wouldn't force the variable to change?
It is just declared as a simple float.
Any advice would be useful thanks