Skip to content

Commit

Permalink
fix(transform): fix lookAt at vertical angle (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 authored Jul 27, 2024
1 parent 14c80e4 commit 1922f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/Matrix4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export class Matrix4 {
if (Math.abs(up.z) > 0.9999) {
zAxis.x += 0.0001;
} else {
zAxis.z += 0.0001;
zAxis.z -= 0.0001;
}
zAxis.normalize();
}
Expand Down

0 comments on commit 1922f18

Please sign in to comment.