What exactly is the GetSafeNormal() function?

Hi, sorry for this question but in the PlatformVelocity I don´t understand what makes the GetSafeNormal() member.

Best Regards
marco

1 Like

It’s just returning the same vector but scaled so it’s size (or magnitude) equals 1 (a.k.a. ‘unit’ vector).

The ‘Safe’ in GetSafeNormal just means it protects against a potential divide-by-zero.

3 Likes

Privacy & Terms