21 de dez de 2017

Vector3.SmoothDamp - smooth transaction between 2 vectors


1
2
3
4
Vector3 velocity;
public float time = .5f;

transform.position = Vector3.SmoothDamp(transform.position, newPosition, ref velocity, time);

Nenhum comentário: