fix: Rotate penguin by 90 deg

master
John Montagu, the 4th Earl of Sandvich 2026-03-05 12:14:47 -08:00
parent 6c0673febe
commit 4366b39fc5
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 7 additions and 0 deletions

View File

@ -114,6 +114,13 @@ int main() {
raylib::Model penguin("models/penguin.glb"); raylib::Model penguin("models/penguin.glb");
raylib::Model eagle("models/eagle.glb"); raylib::Model eagle("models/eagle.glb");
// vector equation was correct, just has to be rotated 90 degrees to face
// the right direction
penguin.SetTransform(
((raylib::Transform)penguin.GetTransform())
.RotateY(raylib::Degree(90))
);
float camYaw = 3.14f; // offset by 90 deg so it faces in the proper direction float camYaw = 3.14f; // offset by 90 deg so it faces in the proper direction
float camPitch = 0; float camPitch = 0;