Hi, Im trying to adapt this blueprint into c++. I need to get the forward and right vector from a rotation that has had the pitch and roll zeroed out. Any help would be fantastic, Thank you.
2 Likes
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
Thank you for your help