i was confused about this as well.
the /3 is so that the distance between the slingshot and the player is divided by 3.
for instance: the distance is 100, the returned value of the distance/3 is 33, which is still less than 45
they do this so you have an extra amount of control over the projected velocity, and so the player gets pulled back slower than the user inputs...
Thank you so much!
I am still confused why there is a division of 3 below? " / 3 " What is that for?
_________________________________________
So we have this line:
min(distance(Touch.X, Touch.Y, CatapultBlock.X, CatapultBlock.Y) / 3, 45)
where
Min() will return the minimum value between A and B
And Distance() Calculate the distance between 4 points
So the pig will move at a certain distance depending on where the player is touching, however this distance will never be greater than 45, because the pig will move the MINIMUM value between the distance and 45 (Distance() , 45)