summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-21 14:38:08 +1000
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-21 14:38:08 +1000
commitc7c33cd18e057bc826a0d31e1860b0ac396a00b6 (patch)
tree6e2e3205effc163e82cfc222eaea95f09d0806c0 /examples
parent1fc69f183bf8f105048b9d47e096ccd402107bbb (diff)
swap camera side to match khronos's sample viewer
Diffstat (limited to 'examples')
-rw-r--r--examples/skinned_animation/ex_skinned_animation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/skinned_animation/ex_skinned_animation.c b/examples/skinned_animation/ex_skinned_animation.c
index 220908a..c31e93c 100644
--- a/examples/skinned_animation/ex_skinned_animation.c
+++ b/examples/skinned_animation/ex_skinned_animation.c
@@ -52,7 +52,7 @@ int main() {
scene our_scene = make_default_scene();
- vec3 cam_pos = vec3_create(0, 5, 8);
+ vec3 cam_pos = vec3_create(0, 5, -8);
game_state game = {
.camera = camera_create(cam_pos, vec3_negate(cam_pos), VEC3_Y, deg_to_rad(45.0)),
.camera_euler = vec3_create(90, 0, 0),
@@ -89,7 +89,7 @@ int main() {
translation = vec3_mult(game.camera.up, -camera_lateral_speed);
} else if (key_is_pressed(KEYCODE_S) || key_is_pressed(KEYCODE_KEY_DOWN)) {
translation = vec3_mult(game.camera.front, -camera_zoom_speed);
- } else if (key_is_pressed(KEYCODE_A)) {
+ } else if (key_is_pressed(KEYCODE_A) || key_is_pressed(KEYCODE_KEY_LEFT)) {
vec3 lateral = vec3_normalise(vec3_cross(game.camera.front, game.camera.up));
translation = vec3_mult(lateral, -camera_lateral_speed);
} else if (key_is_pressed(KEYCODE_D) || key_is_pressed(KEYCODE_KEY_RIGHT)) {