About 'Getting and Setting Actor Rotations'!

In this video (objectives)…

  1. Get rotation of actors in blueprints
  2. Set rotation of actors in blueprints
  3. Fix yaw rotation offset
  4. Clamp float values

After watching (learning outcomes)…

Learn how to get and set actor rotations in blueprints

(Unique Video Reference: 8_MR_UBP)

We would love to know…

  • What you found good about this lecture?
  • What we could do better?

Remember that you can reply to this topic, or create a new topic. The easiest way to create a new topic is to follow the link in Resources. That way the topic will…

  • Be in the correct forum (for the course).
  • Be in the right sub-forum (for the section)
  • Have the correct lecture tag.

Enjoy your stay in our thriving community!

Lots to remember, and to get your head around, but so far all makes sense,
its odd that the SetActorRotation gets fed in a New Rotation from the left from a mouse event timer. Makes me wonder what happens if mouse event happens first or what happens if event tick happens first… could there be a race condition and does it really matter :slight_smile:

Hey there! I’m stuck at the ninth video of the c++ unreal udemy course. after adding the options to get and set actors rotations, the controlling game actor is the camera. If anyone can help me it would be amazing(edited)

Connect your Event Tick to the Set Actor Rotation via the top arrow thingy. I had the same problem.

Hey,
I’m stuck at your course not sure what is wrong here but the game wont play. As I hit the play button in UE4 and click the mouse on the screen the board won’t move. I have tried to research the internet but found nada. Not tried to change the code in any way. I’m not sure if the event tick is right but I think it is the same one as in the video you showed.

Hey looks like you have your “Get mouse Y” function plugged into the wrong port. It should be in A not B.

Also looks like you have used a float * float function between your break rotator and your float clamps. These should be float additions.

Is there a similar technique to get smooth rotation with keystrokes, gamepad movement, etc?