1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Relation between push speed and blocks travelled

Discussion in 'Other' started by Blue, Aug 23, 2019.

  1. Blue

    Supporter ++

    Joined:
    Apr 15, 2018
    Messages:
    18
    Likes Received:
    2
    I've noticed a few people wondering what the correlation between push speed in the push effect and blocks travelled is, so I decided to map it out.

    The test was made by forcing the player to fly and mapping out how many blocks they travel with a certain push amount. The player was teleported to 0, 400, 0 and forced to fly, then pushed with a certain speed, to be precise.

    Here are the results I got:
    Code (Text):
    1. With speed 0.1, travel distance was 01.08.
    2. With speed 0.2, travel distance was 02.19.
    3. With speed 0.3, travel distance was 03.30.
    4. With speed 0.4, travel distance was 04.41.
    5. With speed 0.5, travel distance was 05.52.
    6. With speed 0.6, travel distance was 06.64.
    7. With speed 0.7, travel distance was 07.75.
    8. With speed 0.8, travel distance was 08.86.
    9. With speed 0.9, travel distance was 09.97.
    10. With speed 1.0, travel distance was 11.08.
    11. With speed 1.1, travel distance was 12.19.
    12. With speed 1.2, travel distance was 13.30.
    13. With speed 1.3, travel distance was 14.41.
    14. With speed 1.4, travel distance was 15.52.
    15. With speed 1.5, travel distance was 16.63.
    16. With speed 1.6, travel distance was 17.75.
    17. With speed 1.7, travel distance was 18.86.
    18. With speed 1.8, travel distance was 19.97.
    19. With speed 1.9, travel distance was 21.08.
    20. With speed 2.0, travel distance was 22.19.
    21. With speed 2.1, travel distance was 23.30.
    22. With speed 2.2, travel distance was 24.41.
    23. With speed 2.3, travel distance was 25.52.
    24. With speed 2.4, travel distance was 26.63.
    25. With speed 2.5, travel distance was 27.75.
    26. With speed 2.6, travel distance was 28.86.
    27. With speed 2.7, travel distance was 29.97.
    28. With speed 2.8, travel distance was 31.08.
    29. With speed 2.9, travel distance was 32.19.
    30. With speed 3.0, travel distance was 33.30.
    31. With speed 3.1, travel distance was 34.41.
    32. With speed 3.2, travel distance was 35.52.
    33. With speed 3.3, travel distance was 36.64.
    34. With speed 3.4, travel distance was 37.75.
    35. With speed 3.5, travel distance was 38.86.
    36. With speed 3.6, travel distance was 39.97.
    37. With speed 3.7, travel distance was 41.08.
    38. With speed 3.8, travel distance was 42.19.
    39. With speed 3.9, travel distance was 43.30.
    40. With speed 4.0, travel distance was 43.30.
    So, I made a graph out of these values in GeoGebra. Here's what that looks like:
    [​IMG]
    Here, the X axis represents the distance travelled, and the Y axis represents the push speed.

    Turns out, we can actually calculate how far a certain push speed moves the player
    (provided they're flying in the air)
    Here's how you do that:
    Code (Text):
    1. push speed=0.0899986654945*desired travel distance (in blocks) + 0.0028834595151
    So, to travel exactly 10 blocks, you'd have to use a push speed of 0.0899986654945*10 + 0.0028834595151 (which is 0.9028701144601)
     
Loading...