Hi all
In the simonh folder, regarding the fireworks sample, I see the x and y updates are
// pos update
x+=sin(angle)*cos(angle)*speed
y+=cos(angle)*cos(angle)*speed
psuedo code that is.
I am familiar with the plain sin(angle) and cos(angle) update steps, my question is, why are the double cos(angle) steps included. The effect is cool, just trying to understand :)
In the simonh folder, regarding the fireworks sample, I see the x and y updates are
// pos update
x+=sin(angle)*cos(angle)*speed
y+=cos(angle)*cos(angle)*speed
psuedo code that is.
I am familiar with the plain sin(angle) and cos(angle) update steps, my question is, why are the double cos(angle) steps included. The effect is cool, just trying to understand :)