How do I make rinterp to framerate independent?
So, I've been using rinterp to to rotate an actor. Hooked up SetActorRotation to rinterpto and tried using GetWorldDeltaSeconds and Delta seconds from event tick to plug for Delta time.
However, when I change the game's framerate from 30 to 120, the rotation speed is much faster at 120 fps.
How do I make the rotation framerate independent?
asked Oct 01 '17 at 02:45 AM in Blueprint Scripting
RInterpTo changes its InterpSpeed based on how far away it is from the TargetRotation, the farther it is, the faster. In your case it will be really slow. Note, it's hard to control the rotation speed with RInterpTo.
I recommend using RInterpToConstant instead of RInterpTo if you want to keep on using #2 , its InterpSpeed is in Degrees/Second. And the InterpSpeed will be what you plugged in even if you use Z + RotationSpeed for TargetRotation.
Follow this question
Once you sign in you will be able to subscribe for any updates here