When implementing the ToonTanks turret rotation function, I’ve noticed something very odd. My turret rotates as expected while following the mouse, until I press any mouse button. This action seems to set some sort of “home rotation” that the turret will revert to on every subsequent mouse click. I’ve tried commenting out all of the axis and action bindings to no avail. I’ve also confirmed the Towers turret stays trained on my tank, so I think it’s not a flaw in the RotateTurret function.
This behavior happens for all 5 buttons on my mouse, and also on the trackpad for my laptop. I’ve verified my code line by line against the instructors and, barring some minor style differences and naming, they’re the same.
In the interest of learning, this feels like a bug I could probably ignore and continue on with the assignment; but I’d really love if I’ve made some bone-headed beginner-ish mistake.