-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Add Ray.plane_intersection_point to simplify example code #22381
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
Conversation
|
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
| None | ||
| } | ||
|
|
||
| /// Returns the intersection point with a plane, if it exists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These docs should call out that it's a combination of the other two methods.
| } | ||
|
|
||
| /// Get the distance to a plane if the ray intersects it | ||
| /// Returns the distance to a plane if the ray intersects it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should mention the new method here too :)
Co-authored-by: IQuick 143 <[email protected]>
Objective
Solution
-Added a plane_intersection_point method, making the usage of rays more intuitive.
-This method simplifies 2 out of 4 examples that previously had to manually calculate intersection points using intersect_plane + get_point.