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)