added rotation by pitch

This commit is contained in:
2025-11-29 21:31:20 +03:00
parent 3a66b66c6a
commit daa1abc047

View File

@@ -301,7 +301,8 @@ int main()
RotationAngles rot = cube.get_rotation_angles(); RotationAngles rot = cube.get_rotation_angles();
rot.yaw += omath::opengl_engine::YawAngle::from_degrees(40.f * deltaTime); rot.yaw += omath::opengl_engine::YawAngle::from_degrees(40.f * deltaTime);
rot.roll += omath::opengl_engine::YawAngle::from_degrees(40.f * deltaTime); rot.roll += omath::opengl_engine::RollAngle::from_degrees(40.f * deltaTime);
rot.pitch += omath::opengl_engine::PitchAngle::from_degrees(40.f * deltaTime);
cube.set_rotation(rot); cube.set_rotation(rot);
const Mat4x4& viewProj = camera.get_view_projection_matrix(); const Mat4x4& viewProj = camera.get_view_projection_matrix();