Weird rotation

I’m just trying out UE4 and I’ve written some pretty basic code: Floater class with this added to Tick:

    FRotator rotation;
    rotation = GetActorRotation();
    rotation.Pitch = (RunningTime*180.0f);
    
    SetActorRotation(rotation);

And created one Floater and made it look like a cylinder.

But I get this: video and this is seriously weird. What did I do wrong?

You’re running into gimbal lock issues. Check this thread: