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
9408e4f2d0
commit
58c638d5ee
@ -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