Skip to content

Commit

Permalink
Fixed Camera shifting Bug
Browse files Browse the repository at this point in the history
See Bug: PistonDevelopers#201

Fixed  Camera  X/Y changing when Pitch/Yaw is at Min and max
  • Loading branch information
RichardlL committed Dec 6, 2015
1 parent c761dcf commit b13d9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ fn main() {
xz_forward = vec3_normalized(xz_forward);
camera.position = vec3_add(
camera.position,
vec3_scale(xz_forward, 0.1)
vec3_scale(xz_forward, 0.0)
);

let view_mat = camera.orthogonal();
Expand Down

0 comments on commit b13d9aa

Please sign in to comment.