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

Add faster ray aabb intersection #6322

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yuripourre
Copy link
Contributor

The proposed method is borrowed from the book "Real-Time Collision Detection By Christer Ericson".

This algorithm is around 20% faster than the current algorithm.

@mgsx-dev
Copy link
Contributor

any copyright/licence for the source you copied from?

@yuripourre
Copy link
Contributor Author

@mgsx-dev I've just made the changes based on your comments. About the copyright I searched a lot in the book but didn't find anything related to the codes.

gdx/src/com/badlogic/gdx/math/Intersector.java Outdated Show resolved Hide resolved
gdx/src/com/badlogic/gdx/math/Intersector.java Outdated Show resolved Hide resolved
@mgsx-dev
Copy link
Contributor

considering this algo is very close to what we already have in intersectRayOrientedBoundsFast, let say we took inspiration from there ;-).

FYI, when there is no licence or copyright notice, it's copyrighted by default.

@crykn crykn added this to the 1.12.2 milestone Nov 7, 2023
@crykn crykn modified the milestones: 1.12.2, 1.12.3 Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants