Tutorial - Stop Camera Following Path from Looping

Hey there, I was wondering how we could stop the camera once it reaches the end of the paths? On this tutorial:

https://developer.playcanvas.com/en/tutorials/camera-following-a-path/

Right now it loops, goes back to the beginning. I just want it to stop.

Thanks,

-T

In the update function of camera-path stop reseting time.
replace line: this.time -= this.duration;
with: return;

1 Like

Thanks, I really appreciate that. Bare with my “noobiness”.