bevy/crates/bevy_gltf
Richard Hozák 184f233a67
Use glam for computing gLTF node transform (#11361)
# Objective

gltf-rs does its own computations when accessing `transform.matrix()`
which does not use glam types, rendering #11238 useless if people were
to load gltf models and expecting the results to be deterministic across
platforms.

## Solution

Move the computation to bevy side which uses glam types, it was already
used in one place, so I created one common function to handle the two
cases.

The added benefit this has, is that some gltf files can have
translation, rotation and scale directly instead of matrix which skips
the transform computation completely, win-win.
2024-01-16 14:33:19 +00:00
..
src Use glam for computing gLTF node transform (#11361) 2024-01-16 14:33:19 +00:00
Cargo.toml GLTF extension support (#11138) 2024-01-15 15:38:01 +00:00