Commit c23638a
committed
better hitnormal calc
based on documentation
/// If the hit parameter is zero, then the start position is on the wall that
/// was hit and the value of @p hitNormal is undefined.
///
/// If 0 < t < 1.0 then the following applies:
///
/// @code
/// distanceToHitBorder = distanceToEndPosition * t
/// hitPoint = startPos + (endPos - startPos) * t
/// @Endcode1 parent 5d9b9c9 commit c23638a
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3234 | 3234 | | |
3235 | 3235 | | |
3236 | 3236 | | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
3237 | 3242 | | |
3238 | 3243 | | |
3239 | 3244 | | |
3240 | 3245 | | |
3241 | | - | |
| 3246 | + | |
3242 | 3247 | | |
3243 | 3248 | | |
3244 | 3249 | | |
| |||
0 commit comments