bevy/release-content/migration-guides/rename_global_transform_compute_matrix.md
atlv 2915a3b903
rename GlobalTransform::compute_matrix to to_matrix (#19643)
# Objective

- compute_matrix doesn't compute anything, it just puts an Affine3A into
a Mat4. the name is inaccurate

## Solution

- rename it to conform with to_isometry (which, ironically, does compute
a decomposition which is rather expensive)

## Testing

- Its a rename. If it compiles, its good to go

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2025-06-17 18:37:26 +00:00

243 B

title pull_requests
GlobalTransform::compute_matrix rename
19643

GlobalTransform::compute_matrix has been renamed to GlobalTransform::to_matrix because it does not compute anything, it simply moves data into a different type.