glTF rendering: moving in walktrough mode is to fast

Change-Id: I2b7869c6c14b69732db864a03a2d9b6638424cf7
This commit is contained in:
Zolnai Tamás 2014-06-25 16:03:14 +02:00
parent 0bb6fd2f3a
commit f2b5ece0ca

View File

@ -254,12 +254,12 @@ IMPL_LINK(OGLWindow, CameraHandler, VclWindowEvent*, pEvent)
vMup = glm::normalize(vMup);
vMup *= 25.0f;
if(nCode == KEY_W)vMoveBy += vMove*(0.005f*fModelSize);
if(nCode == KEY_S)vMoveBy -= vMove*(0.005f*fModelSize);
if(nCode == KEY_W)vMoveBy += vMove*(0.0005f*fModelSize);
if(nCode == KEY_S)vMoveBy -= vMove*(0.0005f*fModelSize);
if( !m_bIsOrbitMode )
{
if(nCode == KEY_A)vMoveBy -= vStrafe*(0.005f*fModelSize);
if(nCode == KEY_D)vMoveBy += vStrafe*(0.005f*fModelSize);
if(nCode == KEY_A)vMoveBy -= vStrafe*(0.0005f*fModelSize);
if(nCode == KEY_D)vMoveBy += vStrafe*(0.0005f*fModelSize);
}
}
gltf_renderer_move_camera(&m_rHandle, vMoveBy.x, vMoveBy.y, vMoveBy.z, 0.0);