|
|
@@ -111,11 +111,11 @@ void Camera::TickGame(float seconds) |
|
|
|
rightleft += 2.f * stick->GetAxis(0) * std::abs(stick->GetAxis(0)); |
|
|
|
updown += -2.f * stick->GetAxis(1) * std::abs(stick->GetAxis(1)); |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
m_position += vec3(rightleft, pgupdown, -updown) * 200.f * seconds; |
|
|
|
m_target += vec3(rightleft, 0, -updown) * 200.f * seconds; |
|
|
|
|
|
|
|
#endif |
|
|
|
m_view_matrix = mat4::lookat(m_position, m_target, m_up) |
|
|
|
* mat4(m_rotation); |
|
|
|
} |
|
|
|