Vector2: Unit and Magnitude

As a Roblox developer, it is currently hard to normalize code between Vector3’s and Vector2’s because of mismatching property names. While Vector3 now has the capitalized Unit and Magnitude properties, Vector2 is still stuck with the lowercase unit and magnitude properties.

I propose that the capitalized Unit and Magnitude properties be added to the Vector2 class. This will help it maintain consistency with the Vector3 class. It makes sense that these two classes should reflect each other as similarly as possible.

19 Likes

Just ran into .Unit .unit issue today lol.

1 Like

I’ve made a fix for this. The change also updates the auto complete to show math.clamp, math.sign, Vector2:Lerp, and Vector2:Dot.

13 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.