bevy/crates/bevy_math
IQuick 143 0e1858bc4f
fix: Possible NaN due to denormalised quaternions in AABB implementations for round shapes. (#14240)
# Objective

With an unlucky denormalised quaternion (or just a regular very
denormalised quaternion), it's possible to obtain NaN values for AABB's
in shapes which rely on an AABB for a disk.

## Solution

Add an additional `.max(Vec3::ZERO)` clamp to get rid of negative values
arising due to numerical errors.
Fixup some unnecessary calculations and improve variable names in
relevant code, aiming for consistency.

## Discussion

These two (nontrivial) lines of code are repeated at least 5 times,
maybe they could be their own method.
2024-08-02 19:12:04 +02:00
..
src fix: Possible NaN due to denormalised quaternions in AABB implementations for round shapes. (#14240) 2024-08-02 19:12:04 +02:00
Cargo.toml Release 0.14.0 version bump (#14126) 2024-07-03 18:22:10 -07:00
README.md Add README.md to all crates (#13184) 2024-05-02 18:56:00 +00:00

Bevy Math

License Crates.io Downloads Docs Discord