summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/viewer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/viewer.c b/src/plugins/viewer.c
index bbdd2ae..b05cfe1 100644
--- a/src/plugins/viewer.c
+++ b/src/plugins/viewer.c
@@ -225,8 +225,8 @@ static void update_camera(
225 (R)(command.CameraMoveRight ? 1 : 0); 225 (R)(command.CameraMoveRight ? 1 : 0);
226 const R move_y = (R)(command.CameraMoveForward ? 1 : 0) + 226 const R move_y = (R)(command.CameraMoveForward ? 1 : 0) +
227 (R)(command.CameraMoveBackward ? -1 : 0); 227 (R)(command.CameraMoveBackward ? -1 : 0);
228 const vec2 translation = 228 const vec2 translation = vec2_scale(
229 vec2_scale(vec2_make(move_x, move_y), controller->camera_speed * dt); 229 vec2_normalize(vec2_make(move_x, move_y)), controller->camera_speed * dt);
230 spatial3_move_right(camera, translation.x); 230 spatial3_move_right(camera, translation.x);
231 spatial3_move_forwards(camera, translation.y); 231 spatial3_move_forwards(camera, translation.y);
232 232