I upgraded iTween to the recent version since the old one depended on GUITexture which is now deprecated. I’m having a problem calling the class easeOutQuad iTween/iTween.cs at master · jtothebell/iTween · GitHub
private float easeOutQuad(float start, float end, float value)
{
end -= start;
return -end * value * (value - 2) + start;
}
This is a private float but was public static in the old iTween. I’m using it to transform an object.
deltaTimeCloseUp += Time.deltaTime;
if (deltaTimeCloseUp > time)
{
deltaTimeCloseUp = time;
}
gameObject.transform.position = new Vector3
(
iTween.easeOutQuad(from.x, to.x, deltaTimeCloseUp / time),
iTween.easeOutQuad(from.y, to.y, deltaTimeCloseUp / time),
iTween.easeOutQuad(from.z, to.z, deltaTimeCloseUp / time)
);
Was wondering what is the correct way to call in the new iTween?
Has anyone used iTween at all to do do this?