Commit 03c79703 authored by Vanessa Karolek's avatar Vanessa Karolek
Browse files

[#42] change pitch rotation direction when orbiting

parent 28ccc7b8
Pipeline #25726 failed with stages
in 3 minutes and 34 seconds
......@@ -57,7 +57,7 @@ namespace vkcv::camera {
const glm::vec3 xAxis = glm::vec3(1.0f, 0.0f, 0.0f);
const glm::mat4 rotationY = glm::rotate(glm::mat4(1.0f), glm::radians(yaw), yAxis);
const glm::mat4 rotationX = glm::rotate(rotationY, glm::radians(pitch), xAxis);
const glm::mat4 rotationX = glm::rotate(rotationY, -glm::radians(pitch), xAxis);
const glm::vec3 translation = glm::vec3(
rotationX * glm::vec4(0.0f, 0.0f, m_radius, 0.0f)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment