I’m trying to get a 2d sprite to move through an array using Vector2.Lerp, but it jumps to a completely different location:
public Vector2[] place;
void Awake(){
place[0].x = 100;
place[0].y = 100;
place[1].x = 100;
place[1].y = 0;
}
public void MoveMe(){
transform.position = Vector2.Lerp(place[0], place[1],Time.time);
}
Can anyone tell me why or offer a solution?