mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-18 21:10:05 +00:00
tweak mouse wheel multiplier
This commit is contained in:
parent
84a7ceb416
commit
53979b1b7b
@ -251,7 +251,7 @@ struct CommonGraphicsApp
|
||||
float cameraDistance = camera->getCameraDistance();
|
||||
if (deltay < 0 || cameraDistance > 1)
|
||||
{
|
||||
cameraDistance -= deltay*m_wheelMultiplier * 0.01f;
|
||||
cameraDistance -= deltay*m_wheelMultiplier;
|
||||
if (cameraDistance < 1)
|
||||
cameraDistance = 1;
|
||||
camera->setCameraDistance(cameraDistance);
|
||||
|
Loading…
Reference in New Issue
Block a user