-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
View matrix and Inverse View matrix mixed up. #10909
Copy link
Copy link
Closed
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorC-Code-QualityA section of code that is hard to understand or changeA section of code that is hard to understand or changeS-Waiting-on-SMEThis is currently waiting for an SME to resolve something controversialThis is currently waiting for an SME to resolve something controversialX-Needs-SMEThis type of work requires an SME to approve it.This type of work requires an SME to approve it.
Milestone
Description
Bevy version
12.0
Problem
The naming of the view and inverse_view matrices in the View struct are the opposite of what those names mean everywhere else.
A view matrix transforms from world to view space. The "view matrix" in the View struct transforms from view to world space.
bevy/crates/bevy_render/src/view/mod.rs
Line 381 in a4c2728
| let view = camera.transform.compute_matrix(); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorC-Code-QualityA section of code that is hard to understand or changeA section of code that is hard to understand or changeS-Waiting-on-SMEThis is currently waiting for an SME to resolve something controversialThis is currently waiting for an SME to resolve something controversialX-Needs-SMEThis type of work requires an SME to approve it.This type of work requires an SME to approve it.