FQuat: add 45 degrees to the current value

A quaternion encodes an angle rotation about a specific axis. If you want to increase the quaternion’s current rotation by 45 degrees, extract the axis and angle, add 45 degrees to the angle, then reconstruct the quaternion with your new axis/angle:


FQuat rotation(....);
FVector axis;
float angleRadians;
rotation.ToAxisAndAngle(axis, angleRadians);
angleRadians += 3.14 / 4; //add 45 degrees
rotation = FQuat(axis, angleRadians);