dimforge / dimforge/bevy_rapier

Documentation: layman friendly terminology in cast_ray max_toi

Open
#543 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.6k
Forks
282
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.