Download

Get real rotation Yaw value from transform component?

Hi! I am adjusting rotation Y value inside Unreal Editor for the simple cube actor, and inside Editor I can see, say, value like 91;

But, if I call now


actor->GetActorRotation().Pitch

, I will see value of 89. It gets clamped.

Same goes, if I do:


 actor->GetActorTransform().GetRotation().Euler().Y

How to actually get same value as I input it inside editor Transform component rotation fields? Only values between 0-90 are exact match

You’re not be able to.

Check this forum post: Ue-4459 - Feedback for Unreal Engine team - Unreal Engine Forums

I see! Thanks a lot for getting back, now I’ll find another strategy to do what I want to.