Dear list, for a project I'm working on I have a linear zoom in on several game objects. I accomplished this first in script, but now I decided to make it all work in Playmaker. I am fairly new to Playmaker, and I can't find the right actions, not even in Ecosystem, so I'm think that I overlook something here.
What I did in script:
(1) I calculated the logarithm of my begin and end values, then (2) I tweened between them and afterwards (3) I calculated the inverse of the chosen logarithm to determine the instantaneous linear scale.
// 1
startValLog = Mathf.Log10 (Mathf.Abs(startVal));
endValLog = Mathf.Log10 (Mathf.Abs(endVal));
// 2
iTween.ValueTo (gameObject, iTween.Hash ("from", startValLog, "to", endValLog, "speed", speed, "LoopType", "loop", "easetype", "linear", "onupdate", "computeValue"));
// 3
public void computeValue(float i){
i = Mathf.Pow (10f, i);
transform.localPosition = new Vector3 (0f, 0f,i);
}
Can somebody point me in the right direction how to add this Log10 before my Ease Vector3 and reverse it afterwards? Do you use an action I'm overlooking? Would it be useful to add this ease type in the Ease Vector3 action?
Many thanks!