glTF rendering: moving in walktrough mode is to fast
Change-Id: I2b7869c6c14b69732db864a03a2d9b6638424cf7
This commit is contained in:
parent
0bb6fd2f3a
commit
f2b5ece0ca
@ -254,12 +254,12 @@ IMPL_LINK(OGLWindow, CameraHandler, VclWindowEvent*, pEvent)
|
|||||||
vMup = glm::normalize(vMup);
|
vMup = glm::normalize(vMup);
|
||||||
vMup *= 25.0f;
|
vMup *= 25.0f;
|
||||||
|
|
||||||
if(nCode == KEY_W)vMoveBy += vMove*(0.005f*fModelSize);
|
if(nCode == KEY_W)vMoveBy += vMove*(0.0005f*fModelSize);
|
||||||
if(nCode == KEY_S)vMoveBy -= vMove*(0.005f*fModelSize);
|
if(nCode == KEY_S)vMoveBy -= vMove*(0.0005f*fModelSize);
|
||||||
if( !m_bIsOrbitMode )
|
if( !m_bIsOrbitMode )
|
||||||
{
|
{
|
||||||
if(nCode == KEY_A)vMoveBy -= vStrafe*(0.005f*fModelSize);
|
if(nCode == KEY_A)vMoveBy -= vStrafe*(0.0005f*fModelSize);
|
||||||
if(nCode == KEY_D)vMoveBy += vStrafe*(0.005f*fModelSize);
|
if(nCode == KEY_D)vMoveBy += vStrafe*(0.0005f*fModelSize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gltf_renderer_move_camera(&m_rHandle, vMoveBy.x, vMoveBy.y, vMoveBy.z, 0.0);
|
gltf_renderer_move_camera(&m_rHandle, vMoveBy.x, vMoveBy.y, vMoveBy.z, 0.0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user