Skip to content
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

Raycast vector arguments are now at the beginning of the function #151

Merged
merged 4 commits into from
Jan 21, 2024

Conversation

KitCat962
Copy link
Contributor

Changed the Raycast functions so that the vectors are at the beginning of the function signature. This is what I wanted to do originally, but didnt have the tech to take into account arguments after the vectors.

Additionally, this adds a generic vector parsing util function that can handle everything that all the current vector parsing functions can do, but in a single function. The pre-existing hardcoded functions will definitely be faster than this new function, but this is the only function that allows for parsing vectors with arguments after the vectors, so use it whenever another raycast function situation happens again.

@KitCat962
Copy link
Contributor Author

oops. I committed to the wrong branch. Oh well. There is now a new raycast function that raycasts user provided AABBs using vanilla functions

@UnlikePaladin
Copy link
Member

because the raycast api hasn't actually made it's way into a stable release, this is okay, it looks good to me.

@UnlikePaladin UnlikePaladin merged commit 2331b61 into FiguraMC:1.20 Jan 21, 2024
1 check passed
@KitCat962 KitCat962 deleted the new-vector-parsing branch January 22, 2024 18:54
superpowers04 pushed a commit to superpowers04/Extura that referenced this pull request Feb 4, 2024
Raycast vector arguments are now at the beginning of the function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants