Character not rotating towards mouse when moving.
Hey, i'm working on a small project where the player controls a character in a top down view. The player can use wasd to move the character and use the mouse to make the character rotate. I'm currently using the third person template although i have rewritten some things.
I have managed to get so the character can rotate towards the mouse, but this only works if the character is standing still. The reason i'm using planes and line intersection is because i need to have the character able to rotate towards the mouse when the character is standing on something that is tilted.
This works fine when the character is standing still but if i start moving the character it stops working and start to look in weird directions. Since i'm using the third person template with the animation starter pack might this cause issues for the rotation?
However if i use this piece of code instead of the other set rotation it seems to work just fine. Why is this?
asked Apr 05 '15 at 11:35 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here