From e14367d9896dcaedf0d42b8dbf73c963eb809416 Mon Sep 17 00:00:00 2001 From: Ivan Gagis Date: Mon, 8 Jul 2024 23:05:50 +0300 Subject: [PATCH] update --- src/carcockpit/gauge.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/carcockpit/gauge.cpp b/src/carcockpit/gauge.cpp index ccc373f..0ba0543 100644 --- a/src/carcockpit/gauge.cpp +++ b/src/carcockpit/gauge.cpp @@ -71,10 +71,10 @@ void gauge::render(const matrix4& matrix) const matrix4 mmm; mmm.set_identity(); - mmm.rotate( + mmm.rotate(ruis::quat( -(this->params.start_angle_rad + (this->params.end_angle_rad - this->params.start_angle_rad) * this->get_fraction()) - ); + )); { auto div = ruis::real(this->arrow_tex->dims().x()) * this->params.arm_fraction; ASSERT(div >= 0)