RInterpto never reaches target rotation

Brainshack
Fri, 22 Aug 2014 15:46:05 +0000
Community & Industry Discussion

Hello,

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?

2 posts - 1 participant