Time.DeltaTime influencing speed of moving GameObject.
I have a setup where I have several scenes that are loaded asynchronously. I am trying to move a GameObject using Vector3.MoveTowards(current_position, target_position, distance_per_frame)
; which is called at every Update, where: distance_per_frame = speed * Time.deltaTime
;
What I do not understand is that although this definition is supposed to result in frame rate independent displacement, the result for me is that between scenes, Time.deltaTime changes, and for some reason the GameObject moves at a different speed.
I then tried to set distance_per_frame to be a constant, and the movement of the GameObject is constant between scenes and between two different computers I have.
How should I be defining these variables such that I get consistent movement of this GameObject between scenes and computers?
Thanks!