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