4-27 Top Down Pawn Rotation

[4-27] Hi,i making a shooting top down game , it use WASD to move and Pawn’s rotation ,Mouse controll Arrow1’s rotation(gun),In my expectation, arrow1 will track the mouse position and rotate according to the character’s face, but when I rotate the character, I find that arrow1 does not rotate with the character, but rotates according to the initial direction, how can I fix it

this is my controll blueprint


default movement

Blueprint Results

Set the arrow’s rotation to absolute / world.

And then, instead of setting Relative Rotation:

image

Also, plug this one back in:

Regarding restricting aiming angles:

Converting to degrees often complicates things unnecessarily but can be OK. Dot Product is your friend, though:

Dot cheat sheet:

image

1 Like

thanks so much!

1 Like