I’m using UE 5.1 and have created a tank pawn that will be used as my main player pawn. I’m trying to rotate only the “TankBarrel” 180 degrees when the “A” key is pressed and then 180 degrees in the opposite direction when “D” is pressed. It needs to be a smooth sweep from its current orientation to the opposite side. “Add Controller pitch Input” would be great if it just rotated the barrel but it rotates the whole tank, camera included lol. The game is going to be akin to an old ms-dos look so the tank barrel need only rotate on the “Y” axis
1 Like
You can try something like ‘add relative rotation’ on the barrel, and clamp it between the values you want. So, add the action value to the rotation.


