Problem with the rotation of the volumetric fog

Hello, I’m trying to make a volumetric fog move in the direction of the cube.

For this purpose, I made this kind of material.

However, when rotating the cube, the position of the fog is not saved and constantly jumps. The same happens if you change coordinates in the material.

Then I turned off the time.

In this version, the fog maintains its position. Even when the cube rotates. But then there is no animation of fog movement.

What can be done to fix this? Maybe this can be done directly in the material?

1 Like

Calculate time in blueprint. Delta time * speed * direction vector.

1 Like

Thanks, it worked! I was multiplying a float value and needed a vector.

Result

1 Like