How to make sweep work with rotation?

I’m also getting this rotation bug. In my case, I’m using AddActorLocalRotation with sweep, but my pawn is still penetrating through objects. When rotating back out of the wall, the pawn will actually pop out of the wall so there won’t be any penetration. It might have something to do with the angle of the rotation. Seems like there’s some sort of collision calculations occurring, but it just doesn’t work well. Have you figured out how to get around this?