Search Unity

Resolved Step bar.Formulas.

Discussion in 'Scripting' started by Gamadrila, Apr 8, 2022.

  1. Gamadrila

    Gamadrila

    Joined:
    Sep 5, 2021
    Posts:
    142
    Hello everyone.
    I'm trying to do a double strip of steps.I am using the A* Pathfinding Project library. The first strip responds to mouse movement. This is what I did. The second bar should shrink as the character moves. The length of the path, the speed of the character and the length of the strip of steps are known.
    Please tell me the formulas how to connect these variables and the cycle, adjusted for the frame rate. That is, during the time at which the character walks, the strip of steps should decrease.
     
  2. Gamadrila

    Gamadrila

    Joined:
    Sep 5, 2021
    Posts:
    142