Particles start blinking when calculating direction on VFX Graph using SDF

Particles start blinking when calculating direction using (oldpos - pos).normalized.
I’m using SDF and my goal is to simulate cockroaches crawling on a body.
Bug video

Hello @CodeTrigger ,
My guess is that some frames execute with deltaTime == 0, which would lead to a direction vector equal to (0,0,0) which is invalid. You can prevent this issue from happening by selecting Skip Zero Delta Time in the inspector of the Update context.

2 Likes