diff --git a/as4/as4.cpp b/as4/as4.cpp index 87fee11..fc69d9a 100644 --- a/as4/as4.cpp +++ b/as4/as4.cpp @@ -114,6 +114,13 @@ int main() { raylib::Model penguin("models/penguin.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 camPitch = 0;