Hello,
I was simply wondering how do I make a rotator in C++? I really just want to make a rotator with zero-values, just with a predefined yaw-value.
Thanks in advance!
Stefan
Hello,
I was simply wondering how do I make a rotator in C++? I really just want to make a rotator with zero-values, just with a predefined yaw-value.
Thanks in advance!
Stefan
FRotator is (pitch, yaw, roll). the 3 are just floats. (In the editor they’re Roll, Pich, Yaw, to match X, Y, Z from Vector.)
FRotator NewRotator = FRotator::ZeroRotator; // starts with everything as 0.0f
NewRotator.Yaw = 10.0f; // new value of 10.0f
or could just set it somewhere as FRotator(0.0f, 10.0f, 0.0f)
which gives it a yaw of 10.0f
Aah thanks, so helpful!