very serious question!!!

Task. It is necessary to make half of the particles be at 0 rotation, and the other half at 180, i.e. through one.
1 - in one lesson I saw such a scheme, but it does not work for me. Tell me, how can you compare 2 numbers, for example, even and odd or integers with fractional ones?
2 - how to make the number change from zero to one over time. Then I could put the switch in the node and the problem would be solved.

I could put the switch in the node and the problem would be solved.
I hope I explained the problem clearly, I really need an answer!



Why compare to 0?
1/2 is 0,5 and 2/2 is 1

I suggest to use modulo to check for repeats

About lerping from 0-1, just use lifetime?

I’m not exactly what you mean with your questions

1 Like

(x % 2) * 180 where x is some integer like particle id.

1 Like

Please, can you show on the nodes?

I don’t understand the point of this tutorial at all. It just takes and checks everything above zero. But it will still be above zero.