Rotate Character With Mouse Movement
I'm using a simple pawn for my player character. Basically, it's a spiky wheel that runs over baddies. I am controlling the pawn's movement with the mouse as shown in the blueprint below. This works better than any of the pawn or character movement stuff I tried because they all lagged the mouse. However, I'm having no luck setting the pawn's rotation. I want the player wheel to turn in the direction the mouse is moving. Any suggestions appreciated. Bonus points if you can tell me how to lean the tire in the direction of turns!
![alt text] : /storage/temp/89787-character_mouse_movement.png
asked May 07 '16 at 10:27 PM in Blueprint Scripting
in that BP you're continually setting the actor rotation to 0 so it will always have that rotation on tick.... try playing with the rotation portion there, namely the yaw. I dont know the exact nodes to use off the top of my head, but you're probably gonna want to find the location of the mouse pointer (within a clamped region maybe) and then point the pawn at that rotation
Follow this question
Once you sign in you will be able to subscribe for any updates here