Change path-speed of camera from path-point to path-point

hello I need to change path-speed of camera from path-point to path-point?
… as in:
https://developer.playcanvas.com/en/tutorials/camera-following-a-path/

(example has a locked speed through out full path)

Found a solution myself - multiple camera path scripts in succession (raises other problems though)

Hi Thomas,

If you look into the camera-path.js file, you’ll see this line…

// update code called every frame
CameraPath.prototype.update = function(dt) {
this.time += dt;

Change this to…
// update code called every frame
CameraPath.prototype.update = function(dt) {
var currentCameraScale = 0.3;
this.time += (dt*currentCameraScale);

The currentCameraScale will speed up or slow down the overall speed of the curve ( as it changes this.time directly, all of the other code for eg looping will still work ).

What you want to do now is to have code that changes the currentCameraScale based on which part of the path you’re in.

That should give you a good basis for an alternative to try out - I don’t have any free time at the mo to develop a fully working solution unfortunately.

ok thx … will test it soon