Y
Y
YakutD2019-05-31 23:03:13
Unity
YakutD, 2019-05-31 23:03:13

How to make a smooth movement of a figure by one cell?

Now the shape is moved using transform,position (-/+)= new Vector3(x,y,z)
This way the shape moves instantly. There was an idea to make the movement smoother. How can this be achieved?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2019-05-31
@YakutD

In the same way, only add not the entire offset, but a small piece - depending on the required speed and deltaTime,

S
SEOD, 2019-06-02
@SEOVirus

MoveTowards and Lerp are the best for this task.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question