Trying to get the forward and right vector from a rotation c++

These are the functions in source code

FVector UKismetMathLibrary::GetForwardVector(FRotator InRot)
{
	return FRotationMatrix(InRot).GetScaledAxis( EAxis::X );
}

FVector UKismetMathLibrary::GetRightVector(FRotator InRot)
{
	return FRotationMatrix(InRot).GetScaledAxis( EAxis::Y );
}

FVector UKismetMathLibrary::GetUpVector(FRotator InRot)
{
	return FRotationMatrix(InRot).GetScaledAxis( EAxis::Z );
}
7 Likes