mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Make OnCursorMove simpler
This commit is contained in:
@@ -38,8 +38,8 @@ void TCamera::Reset() {
|
||||
|
||||
|
||||
void TCamera::OnCursorMove(double x, double y) {
|
||||
|
||||
m_rotationoffsets += glm::dvec3 { y, x, 0.0 };
|
||||
m_rotationoffsets.x += y;
|
||||
m_rotationoffsets.y += x;
|
||||
}
|
||||
|
||||
static double ComputeAxisSpeed(double param, double walkspeed, double maxspeed, double threshold) {
|
||||
|
||||
Reference in New Issue
Block a user