Whne I'm using the MoveRealistic I'm using a break point on the line:
step_x = Mathf.Repeat(step_x + speed * Time.time, max_x);
I see that speed value is 3 and max_x value is 216. The only value that change is the step_x what make the speed to change to very very high. And I want a static speed(3).
Another problem is that each time one object(step) is moving when he finished moving the next one move. But I want to create a escalator stairs effect using this method and the objects should move all the same time like it is in this jsfiddle: And this is where I have take the code from and converted it to unity csharp:
Last problem is that the objects the step's(stairs) moving in other position/s and not on their original position/s.
This is the steps/stairs original position. And where they should move.
And this is where they are moving when using the MoveRealistic method:
When using the MoveRegular method they are moving fine but I want to be able to use also the MoveRealistic method like in the jsfiddle.