-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Documentation: layman friendly terminology in cast_ray max_toi #543
Comments
The |
Ah thanks... I think I'm still a bit confused. Bevy uses If that's the case, I still believe it might help if the documentation is updated to use more easily distinguishable terminology. I'm not familiar with that use of |
And thank you for this library! It's absolutely not something I'd want to write myself. |
Yes, |
In https://rapier.rs/docs/user_guides/rust/scene_queries it says the limit is
[ray.origin, ray.origin + ray.dir * max_toi]
suggesting that max_toi is in unit of ray.dir (i.e. toi 1 == ray.origin + ray.dir).The code docstring says
limits the length of the ray to ray.dir.norm() * max_toi
(i.e. toi 1 could be before or after ray.origin + ray.dir).The text was updated successfully, but these errors were encountered: