I’m working on a game right now, and life would be so much simpler if I could emit a signal when a PathFollow3D crosses the progress mark of 1.0 and resets. This would signify the end of a stage, and I could then use it to pop up the end-of-level overlay.
Kind of like the finished signal for a sound.
Unfortunately, I can’t find any information on this.
Tried that, didn’t work. Progress_ratio is never greater than 1.0.
isn’t that why he used >= so when it’s equal to 1.0 it’s done
It may never be exactly equal to 1.0, as it’s adjusted discretely by a velocity, and it’s a floating point. If we were talking about integers you might be correct.