Relation between push speed and blocks travelled

  • 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!

Blue

Staff member
Moderator
Supporter ++
Apr 15, 2018
44
5
8
4
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:
With speed 0.1, travel distance was 01.08.
With speed 0.2, travel distance was 02.19.
With speed 0.3, travel distance was 03.30.
With speed 0.4, travel distance was 04.41.
With speed 0.5, travel distance was 05.52.
With speed 0.6, travel distance was 06.64.
With speed 0.7, travel distance was 07.75.
With speed 0.8, travel distance was 08.86.
With speed 0.9, travel distance was 09.97.
With speed 1.0, travel distance was 11.08.
With speed 1.1, travel distance was 12.19.
With speed 1.2, travel distance was 13.30.
With speed 1.3, travel distance was 14.41.
With speed 1.4, travel distance was 15.52.
With speed 1.5, travel distance was 16.63.
With speed 1.6, travel distance was 17.75.
With speed 1.7, travel distance was 18.86.
With speed 1.8, travel distance was 19.97.
With speed 1.9, travel distance was 21.08.
With speed 2.0, travel distance was 22.19.
With speed 2.1, travel distance was 23.30.
With speed 2.2, travel distance was 24.41.
With speed 2.3, travel distance was 25.52.
With speed 2.4, travel distance was 26.63.
With speed 2.5, travel distance was 27.75.
With speed 2.6, travel distance was 28.86.
With speed 2.7, travel distance was 29.97.
With speed 2.8, travel distance was 31.08.
With speed 2.9, travel distance was 32.19.
With speed 3.0, travel distance was 33.30.
With speed 3.1, travel distance was 34.41.
With speed 3.2, travel distance was 35.52.
With speed 3.3, travel distance was 36.64.
With speed 3.4, travel distance was 37.75.
With speed 3.5, travel distance was 38.86.
With speed 3.6, travel distance was 39.97.
With speed 3.7, travel distance was 41.08.
With speed 3.8, travel distance was 42.19.
With speed 3.9, travel distance was 43.30.
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:
igJhLch.png

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:
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)