RInterpto never reaches target rotation
I am trying to rotate my Character using FMath::RInterpTo:
Controller->SetControlRotation(FMath::RInterpTo(Controller->GetControlRotation(), targetRotation, deltaSeconds, 2.0f));
TargetRotation.Yaw is set to 90, but the Interpolation will always stop at 89.99. Is this to be expected ort am I doing something wrong?
asked Aug 22 '14 at 03:46 PM in C++ Programming
I believe that's expected. If you notice the == compare operator for rotators has a tolerance pin to handle the tiny wiggle factor that can always arise when dealing with them.
answered Jan 20 '15 at 11:23 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here