Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix time of impact description (#340)
# Objective As reported by `@nezuo` on the Bevy Discord, the documentation for the `time_of_impact` in `ShapeHits` is inaccurate and contradictory. > How long the shape travelled before the initial hit, i.e. the distance between the origin and the point of intersection. These are two separate things: "the distance between the origin and the point of intersection" implies that it corresponds to the blue line, but in reality it is the orange line. ![TOI visualized](https://github.com/Jondolf/bevy_xpbd/assets/57632562/80210b86-3439-48e0-94db-0f15f2dde0f0) ## Solution Clarify the doc comment and remove the incorrect part: > The time of impact (TOI), or how long the shape travelled before the initial hit.
- Loading branch information