fix: Rotate penguin by 90 deg
parent
6c0673febe
commit
4366b39fc5
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue