Coded Differently

I wrote my code differently from the lecture. All I did was subtract 90.f from CurrentYaw. I made an if statement so that it would only subtract once.


However, the issue with this was that for whatever reason, the door angle had to be snapped to 90 degrees. This means only 90, 180, 270, 3060/0. If it was not it would go around in an infinite loop.


2 Likes

Thank you for sharing this. Great job on coding in a different way.

1 Like

Privacy & Terms