I’m following Robert Slattery’s Delorean tutorial on YouTube for UE4 C++. In this instance in the video we’re setting up forward movement for a player character. When getting the forward vector I seem to get the following error. “Error C2660: FMatrix::GetUnitAxis function does not take 1 arguments”
// get forward vector const FVector Direction = FRotationMatrix(YawRotation).GetUnitAxes(EAxis::X);
I’ve checked the includes and the header to make sure I didn’t miss anything, and the lines appear to be identical between the video and my project. Occasionally things get changed between versions so I’m assuming the way FRotationMatrix works may have changed?