From 7f3a0c37712d4a176bb4722a0d2bee865fed57f0 Mon Sep 17 00:00:00 2001 From: timokoesters Date: Sun, 6 Oct 2019 22:03:29 +0200 Subject: [PATCH] fix: orientation now supports z rotation --- voxygen/src/scene/figure/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/voxygen/src/scene/figure/mod.rs b/voxygen/src/scene/figure/mod.rs index aec533c3cf..72cceca089 100644 --- a/voxygen/src/scene/figure/mod.rs +++ b/voxygen/src/scene/figure/mod.rs @@ -548,6 +548,7 @@ impl FigureState { let mat = Mat4::::identity() * Mat4::translation_3d(self.pos) * Mat4::rotation_z(-ori.x.atan2(ori.y)) + * Mat4::rotation_x(ori.z.atan2(Vec2::from(ori).magnitude())) * Mat4::scaling_3d(Vec3::from(0.8 * scale)); let locals = FigureLocals::new(mat, col);