I want my character to rotate towards my mouse pointer. Please guide me (I typed code that should work but it doesn’t) - I’m a newbie. Please take it easy if my question is trivial.
you adding movement, you want to rotate it correct?
use the find look at rotation instead of direction and then set actor rotation on tick, you can rinterp it for smoothness
thanks man I understand this part, but I don’t understand what you mean by “set actor rotation on tick”
drag off the controlled pawn and there is a node called setactorrotation
oh and you probably only want the zaw of the rotation so pull off the rotation return value and break it
The problem was solved. I just had to uncheck “Use Controller Rotation Yaw”. Thank you for your cooperation