Hi there! I want to know if this:
myPivotCar->SetRelativeRotation( FRotator( 0.f,UKismetMathLibrary::FInterpTo(myPivotCar->GetRelativeRotation().Yaw, mySkidCurve->GetFloatValue( UKismetMathLibrary::Clamp( UKismetMathLibrary::Dot_VectorVector(myMesh->GetPhysicsLinearVelocity(), myMesh->GetRightVector())/200.f,-1.f,1.f)),GetWorld()->GetDeltaSeconds(),5.f),0.f));
is more optimized than this or is the same just harder to read
FVector linVel = myMesh->GetPhysicsLinearVelocity();
FVector rightVec = myMesh->GetRightVector();
float dotResults = UKismetMathLibrary::Dot_VectorVector(linVel,rightVec);
mySkidVal = UKismetMathLibrary::Clamp(dotResults/200.f,-1.f,1.f);
float pivotKartYaw = myPivotCar->GetRelativeRotation().Yaw;
pivotKartYaw = UKismetMathLibrary::FInterpTo(pivotKartYaw, mySkidCurve->GetFloatValue( mySkidVal), GetWorld()->GetDeltaSeconds(),5.f);
myPivotCar->SetRelativeRotation(FRotator(0.f,pivotKartYaw,0.f));