fix: correct rotation order to pitch, yaw, roll for proper orientation
This commit is contained in:
@@ -447,7 +447,7 @@ fn main() {
|
||||
unsafe {
|
||||
let node = hr_pin.get_unchecked_mut();
|
||||
node.position = glm::vec3(heading.x, 0.0, heading.z);
|
||||
node.rotation = glm::vec3(heading.roll, heading.pitch, heading.yaw);
|
||||
node.rotation = glm::vec3(heading.pitch, heading.yaw, heading.roll);
|
||||
}
|
||||
}
|
||||
// Update rotor rotations
|
||||
|
||||
Reference in New Issue
Block a user