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.
That is weird, I finished ToonTanks like a week ago and didn’t face that problem / bug. I would check again, specially rotation, maybe you used a set instead a get by mistake because autocomplete, same for worldrotation and localrotation.
Please use File > Package Project > Zip Up Project within Unreal as this will ensure only required files are zipped up and things like the Binaries are excluded.
Ok, I’ve uploaded my zip file. I actually borked the original so badly that I had to start over this morning. The error is still present in this totally new project.
I don’t know if my environment is pertinent, but I’m using UE 4.27 on Mac OS X version 11.6. My editor is Emacs. Thank you very much!
I have. The project I sent you is actual a second attempt. Seeing as this has happened with both projects, it seems like the issue must be environmental. I’ve bound the fire action to the space bar, which has unblocked my progress with the course.