bevy/crates/bevy_render
josh65536 e3a3b5b9c2 Fixed the frustum-sphere collision and added tests (#4035)
# Objective

Fixes #3744 

## Solution

The old code used the formula `normal . center + d + radius <= 0` to determine if the sphere with center `center` and radius `radius` is outside the plane with normal `normal` and distance from origin `d`. This only works if `normal` is normalized, which is not necessarily the case. Instead, `normal` and `d` are both multiplied by some factor that `radius` isn't multiplied by. So the additional code multiplied `radius` by that factor.
2022-03-08 00:30:41 +00:00
..
src Fixed the frustum-sphere collision and added tests (#4035) 2022-03-08 00:30:41 +00:00
Cargo.toml Update Hexasphere to 7.0.0 (#4001) 2022-02-21 23:49:07 +00:00