Skip to content

Commit

Permalink
Fixed bug with wrong left/right movement
Browse files Browse the repository at this point in the history
  • Loading branch information
DronCode committed Dec 23, 2023
1 parent 214e386 commit 722b634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BMEdit/Editor/Source/Render/Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ namespace render
if (movementMask > 0) {
if (movementMask & CM_FORWARD) m_vPosition += m_vLookDirection * fVelocity;
if (movementMask & CM_BACKWARD) m_vPosition -= m_vLookDirection * fVelocity;
if (movementMask & CM_LEFT) m_vPosition -= m_vRight * fVelocity;
if (movementMask & CM_RIGHT) m_vPosition += m_vRight * fVelocity;
if (movementMask & CM_LEFT) m_vPosition += m_vRight * fVelocity;
if (movementMask & CM_RIGHT) m_vPosition -= m_vRight * fVelocity;

update();
}
Expand Down

0 comments on commit 722b634

Please sign in to comment.