If somebody has time to explain line 12 & 13 to me, I’d be really thankful.
Forgot to include: please explain line 14 to me too!!!
Line 12 is subtracting the y-position of the torso and the y-position of the mouse and then dividing the result by 100.
Line 13 subtracts the 2 positions and with magnitude indicates the length from one vector to the other and divides it by 120.
The 14 divides the result of these two variables.
Yes. I know what they do. But I want to know what exactly they are calculating.
For example it says “100 mouse offset to direction”
The first line convert mouse offset to direction
The next line is the magnitude between the torso and the mouse position (the distance)
The offset variable is just dividing these 2 factors
13 is calculating the > Magnitude of the Torso and the Mouse, which basically means the difference. Just calculating how far away from eachother they are