Skip to content

Camera setRotation and getYRot are asymmetric #1563

Description

@MehVahdJukaar

Description

This obviously shouldn the the case as it makes a round trip not be identity and accumulates error.

final Vector3f euler = this.rotation.getEulerAnglesYXZ(new Vector3f());
this.yRot = -180.0f - (float) Math.toDegrees(euler.y);
this.xRot = (float) -Math.toDegrees(euler.x);

Game Log

no log sorry

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions