Fixing according to Leyla feedback
This commit is contained in:
parent
3bd3202bf8
commit
ed746891b7
BIN
resources/joystick_base.png
(Stored with Git LFS)
BIN
resources/joystick_base.png
(Stored with Git LFS)
Binary file not shown.
BIN
resources/joystick_knob.png
(Stored with Git LFS)
BIN
resources/joystick_knob.png
(Stored with Git LFS)
Binary file not shown.
@ -648,7 +648,7 @@ namespace ZL
|
||||
if (std::abs(diffy) > 5.0f || std::abs(diffx) > 5.0f)
|
||||
{
|
||||
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);
|
||||
rotationDirection.normalize();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user