mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-02-10 02:10:52 +00:00
Move camera up and down axially, not on view up.
This commit is contained in:
parent
7d48cfa549
commit
b8317c4fa0
1 changed files with 2 additions and 2 deletions
|
@ -476,10 +476,10 @@ void CamWnd::Cam_KeyControl( float dtime ) {
|
|||
VectorMA( velocity, dtime * g_PrefsDlg.m_nMoveSpeed, m_Camera.right, velocity );
|
||||
}
|
||||
if ( m_Camera.movementflags & MOVE_UP ) {
|
||||
VectorMA( velocity, dtime * g_PrefsDlg.m_nMoveSpeed, m_Camera.vup, velocity);
|
||||
VectorMA( velocity, dtime * g_PrefsDlg.m_nMoveSpeed, (vec3_t) { 0, 0, 1 }, velocity);
|
||||
}
|
||||
if ( m_Camera.movementflags & MOVE_DOWN ) {
|
||||
VectorMA( velocity, -dtime * g_PrefsDlg.m_nMoveSpeed, m_Camera.vup, velocity);
|
||||
VectorMA( velocity, -dtime * g_PrefsDlg.m_nMoveSpeed, (vec3_t) { 0, 0, 1 }, velocity);
|
||||
}
|
||||
|
||||
// Now move the origin by the scaled velocity
|
||||
|
|
Loading…
Reference in a new issue