Skip to content

Invalid-matrix4f-for-worldviewprojectionmatrix assertion is hard to diagose #2275

@richardTingle

Description

@richardTingle

As seen in https://hub.jmonkeyengine.org/t/solved-error-invalid-matrix4f-for-worldviewprojectionmatrix/47680 and https://hub.jmonkeyengine.org/t/jmonkeyengine-v3-7-0-beta1-release/47653/12 the new assertion in GLRenderer catches incorrect setting of an objects position to infinity or NaN. However the assertion doesn't give much of a clue where the mistake was made. Just that it has.

I'm proposing adding some assertions to the Transform class in order to catch these mistakes "when they go in".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions