Smoothing arbitrary curve changes

39 Views Asked by At

I'm a programmer, my math knowledges are very limited, so if my post is misplaced - just let me know

There is an arbitrary curve with regular step. The value at specific point should be changed to a specified new one. I need to adapt/interpolate nearby curve values to adapt a new value. I've implemented a simple linear interpolation (see image). Maybe with hermite transition it can look better.

However, it works bad. For example the curve describes a character foot motion. Ok, the foot is landed (horizontal curve piece), then it's elevated again (my interpolation of new value) and returns back to earth. This "added new motion" looks absolute unnatural

So I need more "intellectual" interpolation that preserves a curve shape. For example above we need a same "stay" right (e.g. do not change right side at all) and a monotonous slope at left side.

Is (or how) such interpolation technique known in math?

Thx

Igors