Non-linear movement with UInterpToMovementComponent

Is it possible to have non-linear movement using UInterpToMovementComponent in C++?

For example using easing profiles such as https://easings.net/

This behavior is not directly supported by the class. There might be a subclass which already implements it floating somewhere on the web. I can’t imagine it hasn’t been implemented already. Anyhow, to do it, you’ll have to write your C++ override of the virtual ComputeMoveDelta(float Time) method in UInterpToMovementComponent. Specifically, the part between line 274 and 293 of InterpToMovementComponent.cpp in your own overridden method, should be modified to provide another kind of “easing”.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.