Here's an example of using smoothstepin tween in C#:
main.cs575 chars23 linesIn the above code, we're using Mathf.SmoothStep to calculate the smoothed value of t. t is then used to calculate the new position of the targetTransform, which is then updated in the Update() method. You can adjust the moveTime, startOffset, and endOffset values to control the speed and distance of the tween.
gistlibby LogSnag