Skip to main content

PlatformWalkFrame

Callable

  • PlatformWalkFrame(Speed: number, Frame: number): number

  • Calculates the X force to apply based on the time it took until the last frame and the speed of the object


    Parameters

    • Speed: number

      The speed of the object

    • Frame: number

      The number of milliseconds since the last frame

    Returns number

    • The force to apply