bevy_rapier icon indicating copy to clipboard operation
bevy_rapier copied to clipboard

Documentation: layman friendly terminology in cast_ray max_toi

Open andrewbaxter opened this issue 1 month ago • 4 comments

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).

andrewbaxter avatar Jun 25 '24 12:06 andrewbaxter