I am trying to wrap this function in one line.
FVector TempVelocity = TryGetPawnOwnerRef->GetVelocity();
FRotator TempRotation = TryGetPawnOwnerRef->GetActorRotation();
FVector BreakUnRotator = TempRotation.UnrotateVector(TempVelocity);
SidewaysVelocity = BreakUnRotator.Y;
tried tihs but not compiling:
BreakUnRotator = FRotator::UnrotateVector(FVector(TryGetPawnOwnerRef->GetVelocity(), FRotator(TryGetPawnOwnerRef->GetActorRotation())));