Train sounds not working in both train directions

Hi everyone.
I have a little steam train which moves on a spline. I made a sound ( classic Chuf Chuf ) which works when the train moves ahead on and at speed growing chuff sound change intensity, but it doesn’t works when train moves in back direction.
Could you help me? Thanks

1 Like

Is it because the speed in negative when you go backwards? ( you could put a print string in there and take a look ).

Yes the speed is negative when train moves back. It’s animation ruled by a timeline. So how can I fix ?

1 Like

add an ABS node in front of your speed variable:
That will retain the value but always returns a positive.

Thanks a lot. I finally solved.

1 Like