fu5ha / ultraviolet

A wide linear algebra crate for games and graphics.
https://crates.io/crates/ultraviolet
750 stars 81 forks source link

Fix slurp not always taking shortest path #153

Closed G0BL1N closed 1 year ago

G0BL1N commented 1 year ago

Fixes issue #152. As discussed in this issue and explained here, most 3d engines (and model exporters) expect slerp between two quaternions (rotors in this case) to always take shortest path, despite dot product's sign. Fixes an issue when interpolating between keyframes of animated models.

G0BL1N commented 1 year ago

Sure, that definitely looks better