From 7382f52dc90e240843a08002bb54850a9d22be87 Mon Sep 17 00:00:00 2001 From: Lipid Date: Wed, 2 May 2018 18:01:15 +0200 Subject: [PATCH] Fix copy-and-forget in math.odin --- core/math.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/math.odin b/core/math.odin index f5d4e7946..8bc288185 100644 --- a/core/math.odin +++ b/core/math.odin @@ -413,8 +413,8 @@ axis_angle :: proc(axis: Vec3, angle_radians: f32) -> Quat { euler_angles :: proc(pitch, yaw, roll: f32) -> Quat { p := axis_angle(Vec3{1, 0, 0}, pitch); - y := axis_angle(Vec3{0, 1, 0}, pitch); - r := axis_angle(Vec3{0, 0, 1}, pitch); + y := axis_angle(Vec3{0, 1, 0}, yaw); + r := axis_angle(Vec3{0, 0, 1}, roll); return mul(mul(y, p), r); }