Update convert-coordinates.md

This commit is contained in:
Jan Hohenheim 2025-07-14 13:10:55 +02:00 committed by GitHub
parent d57434df43
commit c8aeaad8da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
---
title: Allow importing glTFs with a corrected coordinate system
authors: ["@janhohenheim"]
pull_requests: [19633, 19685, 19816, 20122]
pull_requests: [19633, 19685, 19816]
---
glTF uses the following coordinate system:
@ -16,7 +16,7 @@ and Bevy uses:
- up: Y
- right: X
This means that to correctly import glTFs into Bevy, vertex data should be rotated by 180 degrees around the Y axis.
This means that to correctly import glTFs into Bevy, vertex data should be rotated by 180 degrees around the Y axis.
For the longest time, Bevy has simply ignored this distinction. That caused issues when working across programs, as most software respects the
glTF coordinate system when importing and exporting glTFs. Your scene might have looked correct in Blender, Maya, TrenchBroom, etc. but everything would be flipped when importing it into Bevy!