How to Normalize a Vector in c++

Input.GetSafeNormal(Tolerance);
Input.Normalize(Tolerance);
Output = Input;

This worked.

I used this inside Blueprints and compared with the standard Normalize provided by KismetMathLibrary. With Tolerance of 1.0, the equal operation returns true even when comparing them with a 100th unit as a tolerance.

3 Likes