Skip to content

Commit

Permalink
correctly apply roll in CameraMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
der-fruhling committed May 19, 2024
1 parent 8dd927e commit 0f1e078
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public abstract class CameraMixin {

@ModifyArg(method = "setRotation", at = @At(value = "INVOKE", target = "Lorg/joml/Quaternionf;rotationYXZ(FFF)Lorg/joml/Quaternionf;"), index = 2)
private float modifyRoll(float original) {
return original + ctp$zRot;
return original + (ctp$zRot * Mth.DEG_TO_RAD);
}

@Inject(method = "setRotation", at = @At(value = "INVOKE", target = "Lorg/joml/Quaternionf;rotationYXZ(FFF)Lorg/joml/Quaternionf;", shift = At.Shift.AFTER))
Expand Down

0 comments on commit 0f1e078

Please sign in to comment.