Hi, I need to rotate a vector to do a shotgun instant hits system. I did this to rotate each hit horizontally:
GetWorld()->LineTraceSingle(GunHitResult, CameraWorldPosition, ((CameraForwardVector * 50000) + CameraWorldPosition).RotateAngleAxis(5.f, FVector(0.f, 0.f, 1.f)), ECC_Visibility, TraceParams);
but the problem is that if I change the X or Y axis instead of Z, to rotate a vector of a hit vertically, it goes up if I’m watching a side of the map, and it goes down if I’m watching the other side.
What can I do to rotate the vector of a hit vertically?