camera refactor

This commit is contained in:
Sandro Sobczyński
2020-11-05 14:53:42 +01:00
parent eba254f13b
commit b11df0262e
4 changed files with 34 additions and 13 deletions
+1 -2
View File
@@ -39,8 +39,7 @@ void Camera::update(Pad &t_pad, Mesh &t_mesh)
{
rotate(t_pad);
followBy(t_mesh);
updatePlanes(t_mesh.position);
worldView.lookAt(up, position, t_mesh.position);
lookAt(t_mesh.position);
}
/** Set camera rotation by pad right joy and update unit circle