Download

Getting only Z axis from vector

Hello, I want to change camera’s Z location + 10. How do I do that? How do I get only Z vector’s axis and then add to that?

Camera->AddWorldOffset(FVector(0, 0, 10))

Plus extra parameters of you want to sweep etc.

This will move it up 10 uu in world space, if you want to do it in local space:

Camera->AddWorldOffset(Camera->GetUpVector() * 10)