Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Jul 8, 2024
1 parent fb2b482 commit e14367d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/carcockpit/gauge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e14367d

Please sign in to comment.