-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate Vector3 to vector #943
base: main
Are you sure you want to change the base?
Migrate Vector3 to vector #943
Conversation
I do wonder if this would be merged or not (in its current state). Yes, the vector library is much more performant, it is also not complete yet from what I understand. This also creates an abstraction between Nonetheless, I would like to point out that you wrote |
My bad on the vector.new point, thanks for poiting that out. I'll commit a fix for that now. Was just quickly replacing Vector3 for vector haha! The extra functions of the vector library I was going to do in a later PR since I was aiming for the low hanging fruit but I can take a look at those too. |
PR #957 has been created by someone else to help with the migration. May update these pages to reference the new vector page instead of Vector3. |
Hi @CadeusTheGreat , |
Hi @IgnisRBX I'll keep this branch updated and ready for the future migration. I'll change the Vector3 docs references to the vector library page linked in #957 for when you feel Roblox is ready to migrate to the new library. I'm just curious on how long that could be as users are unlikely to migrate to the new vector library when all the documentation still references Vector3. Do you have a possible timeline on this change so I know how long I'm looking to maintain this branch for? Thanks! |
Also to be ready for the future, do you want all type references changes from Vector3 to vector? Reference pages such as Attachment, BasePart etc... have lots of references to Vector3 types which I believe could be moved to vector typing. |
Hi again @CadeusTheGreat, In terms of replacing the call references, we're going to keep |
Hi @IgnisRBX Thanks for getting back to me, is it worth me updating the Vector3 type references to Vector3 | vector since it could be either as the vector library types as vector instead of Vector3? Also given the increased performance of the new vector library I'd imagine it would have been preferred over the existing Vector3 API. |
Introduction
With the introduction of the Vector RFC seen in the release notes for 650
Changes
This PR migrates the documentation of Vector3 references to the new vector library where appropriate. Some references may need changing back due to the change required explained next.
More changes may be needed to make this request make sense to end users. Such as a dedicated page in the documentation for - the new library (Raised in PR #957 ), its application and methods - However this was out of scope for this PR.
This PR also compacts Vector3.new(0, 0, 0) to vector.zero where appropriate.
Please note that I understand that vector hasn't been properly announced yet and so this PR may need to sit for a little bit.
Checks
By submitting your pull request for review, you agree to the following: