Skip to content

View matrix and Inverse View matrix mixed up. #10909

@cshenton

Description

@cshenton

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.

let view = camera.transform.compute_matrix();

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorC-Code-QualityA section of code that is hard to understand or changeS-Needs-SMEDecision or review from an SME is requiredX-ControversialThere is active debate or serious implications around merging this PR

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions