The character transform is the movement, rotation and scale that moves (transforms) the character from the origin to it’s ingame position. This function uses the inverse of that transform (which would bring the character back to the origin) but does it to the worldVel. The “Direction” postfix tells it that you only care about the direction of the vector so it doesn’t apply the position offset. So if the character is rotated, this will unrotate all axes at once.