[SOLVED] Does PlayCanvas have any built in functionality for ease-in only interpolating?

Lerping does linear interpolation, smoothstep does ease-in-out interpolation. Does PlayCanvas have any built-in functionality to do ease-in only?

And, I suppose while I’m at it, does PlayCanvas have any built in functionality for doing custom easing curves?

If not, are there any commonly used lightweight JS interpolation libraries that people would recommend using?

Here is our tween library https://github.com/playcanvas/playcanvas-tween.

Also for curves check out http://developer.playcanvas.com/en/api/pc.Curve.html and http://developer.playcanvas.com/en/api/pc.CurveSet.html

Great, thanks @vaios! I’ll look in to that!

Hi,

I’m new to PlayCanvas and not quite sure how to implement curves into animation.

Your tutorial with curves is not working at the moment, so I’m stuck.

Animate entities with curves
https://playcanvas.com/editor/scene/475824

Please check it out, thanks.

Hi - What’s not working exactly? That link you pasted seems alright to me?

Oh yes. It is now. Probably it was a temporary thing then. Thanks a lot.

1 Like