Where can I get the list of Unity software versions along with a list of their supported versions of Android (APIs)? I can’t find any official documents for this.
I’m not sure you fully understand how a linear interpolation works. Here’s a handy link to be reading up on. Also, here’s one on coroutines. I suggest you understand how a lerp works and what it actually does. It doesn’t update automatically, it calculates a point between 0 and 1. Used together with a coroutine, you can create a pseudo-update loop running in the background updating the lerp at regular intervals between 0 and 1.
private IEnumerator Update_Jumping()
{
Vector3 start_Position = gameObject.transform.position;
Vector3 target_Position = gameObject.transform.position + new Vector3(0.0f, 0.3f, 0.0f);
float timer = 0.0f;
float time = 1.0f;
while(timer < time)
{
float lerp_Percentage = timer / time;
timer += Time.deltaTime;
gameObject.transform.position = Vector3.Lerp(start_Position, target_Position, lerp_Percentage);
yield return null;
}
}
For jumping code, I’m fairly sure this is not the best method to do so. HOWEVER, this is one of the methods on how to use lerp correctly. Hope this helps and you can work this into your solution.