Rotating Character Towards Mouse In C++, Buggy Code
So I'm trying to make my player rotate towards the mouse. I've created a method to do this, but it causes the player to rapidly rotate in many directions, and I'm not sure why.
Here's the method:
Am I doing this correctly? What would be the proper way to accomplish this in C++?
Found a solution. I use a custom trace collision channel and invisible plane to determine rotation.
Here's the code for the controller:
I also use a blueprint to set the trace channel on the plane.
answered Jul 19 '17 at 05:21 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here