Skip to content

Commit

Permalink
Fix w3dview camera movement
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon committed Aug 13, 2024
1 parent b7a373a commit 35b5f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/w3dviewer/graphicview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void CGraphicView::OnMouseMove(UINT nFlags, CPoint point)

v.X = (((float)point.x - (float)(r.right >> 1)) / (float)(r.right >> 1)
- ((float)m_mousePos.x - (float)(r.right >> 1)) / (float)(r.right >> 1))
* m_radius * -1.0f;
* m_radius;

v.Y = (((float)point.y - (float)(r.bottom >> 1)) / (float)(r.bottom >> 1)
- ((float)m_mousePos.y - (float)(r.bottom >> 1)) / (float)(r.bottom >> 1))
Expand Down

0 comments on commit 35b5f68

Please sign in to comment.