mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
added rotation by pitch
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user