Fixing according to Leyla feedback

This commit is contained in:
Vladislav Khorev 2026-01-15 10:11:46 +03:00
parent 3bd3202bf8
commit ed746891b7
3 changed files with 5 additions and 5 deletions

BIN
resources/joystick_base.png (Stored with Git LFS)

Binary file not shown.

BIN
resources/joystick_knob.png (Stored with Git LFS)

Binary file not shown.

View File

@ -648,7 +648,7 @@ namespace ZL
if (std::abs(diffy) > 5.0f || std::abs(diffx) > 5.0f) if (std::abs(diffy) > 5.0f || std::abs(diffx) > 5.0f)
{ {
float rotationPower = std::sqrt(diffx * diffx + diffy * diffy); float rotationPower = std::sqrt(diffx * diffx + diffy * diffy);
float deltaAlpha = rotationPower * static_cast<float>(delta) * static_cast<float>(M_PI) / 150000.f; float deltaAlpha = rotationPower * static_cast<float>(delta) * static_cast<float>(M_PI) / 15000.f;
Eigen::Vector3f rotationDirection(diffy, diffx, 0.0f); Eigen::Vector3f rotationDirection(diffy, diffx, 0.0f);
rotationDirection.normalize(); rotationDirection.normalize();