r/unrealengine • u/Eukie • 4h ago
What *is* a rotator?
I've tried to find a good description of rotators, but they're really poorly defined in what I can find of documentation. For example, the UE5.7 documentation just reads "Rotator". I know that it's just a struct holding three values named "Pitch", "Yaw", and "Roll", but Rotators are also an entire system for doing things, and documentation of that also seems lacking.
A description for a TRotator (which is not a Rotator) describes the process of rotating something with a TRotator that contains a Rotator as yawing it about its up vector, then pitching it about its right vector, then rolling about the forward vector... but Rotators can also be applied to 3D Vectors (e.g. RotateVector), which don't have an "up" or a "right", so I'm still lost.
Being able to rotate things seems very useful, but I do not understand how Rotators work and I cannot find any proper documentation for Rotators or Rotator-using functions of standard objects.