Setting dolly path position via script is not placing camera in the correct spot

As can be seen here, I have a dolly track with normalized units. That should mean that path pos 0 is at the highest point, and path pos 1 is at the lowest. When setting it via editor, that’s how it works. But I have the path pos randomly being selected via script every frame, and it’s only moving it slightly up and down with each selection. I even set minimum Random.Range to -100 and max to 100, and as you can see here it picked 92 as the position, but the camera is still not being placed at the bottom of the track.

Why is it not setting it to the correct place?

Ah found it. It was the “Z damping” slider needing to be 0.

1 Like