I’m having trouble understanding FRotator. Specifically the yaw parameter.
The documentation says: /** Rotation around the up axis (around Z axis), Running in circles 0=East, +North, -South. */
I interpret this as a clockwise rotation when looking along the Z axis.
If I do
FRotator(0, 90, 0).RotateVector(FVector(1, 0, 0))
it returns FVector(0, 1, 0).
Which seems like a counter clockwise rotation to me.
Is it just me being dumb?
Actually hold out your left hand as per the left hand rule. Your thumb is the Z axis. Your index finger your X axis and Y is your middle finger. Rotate your hand clockwise by the Z axis (thumb) and you can see X now pointing in the original Y direction (hence the (1,0,0) becoming (0,1, 0).