Not sure if this is better suited in the math section or not (sorry if it is).
Yea so I just opened an old project I want to continue and I found some code I don't understand (probably took it from a tutorial or something).
Hoping you can help me understand the code:
float airPotency = (-1) * airControl + 1;
fwd = (Last.x * airPotency) + (fwd * _airControl);
sdw = (last.y * airPotency) + (sdw * _airControl);
Vector3 forwardVec = (lastForward * airPotency) + (transform.forward * _airControl);
Vector3 rightVec = (lastRight * airPotency) + (transform.right * _airControl);
So I don't really understand what the airPotency function does in the first place so understanding that will probably let me understand the rest.
This block of code controls how much movement control I have in air. I wanted to implement dodging but I think this messes up my dodge while in air.
Thanks for any help!