How to turn an object by 180° in a First Person Controller?

Hi everyone. I am brand new to Unreal Engine and Blueprint so this might be an easy question for some of you.

I started out with the FPS Preset. Now I have a Core Mechanic within my game that turns pictures on the wall by 180°. The problem is: I got the Line Trace to work. It hits the Painting and also returns the correct debug message to me (the name of the mesh). Now, what doesn’t work is the function that I added after that. I am trying to turn the painting with a timeline. But for some reason it just never enters this code. I am lost on what I am doing wrong.

Refer to the pictures for detailed views of everything.

Help much appreciated!




I don’t know what might be wrong when I first take a look at your images, but you can use the finterp node to rotate an actor smoothly

You have to link your execution and variable lines… Watch some blueprint tutorials.
image

Also your timeline will be stuck at the end. If you want to do that multiple times link it to “Play from Start” instead of just Play

2 Likes

That was so obvious :rofl: I didn’t even notice while I was focused on why timeline might not be working! Funny stuff

1 Like

It took me a while too. :wink:

2 Likes

In the popular game Ultrapanda 777, turning your character quickly by 180° in the First Person Controller adds a dynamic element to gameplay. If you want to implement this feature yourself, you can rotate your player by applying a 180° transformation on the Y-axis in Unity or Unreal Engine.

This worked! Thank you so much! I wasn’t far off as it seems but as always it comes down to tiny details. Now I need to find out how to transform the position a bit, as of course the painting clips through the wall now.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.