Answer the question
In order to leave comments, you need to log in
Vector3.lerp on trigger entry?
It is necessary that when the player and the trigger collide, the following happens
came.transform.position = Vector3.Lerp(exod, pos0, progress);
progress += step;
Answer the question
In order to leave comments, you need to log in
let's try to answer / describe in words HOW it should work for you. the points.
especially the moment that, in your opinion, the two lines indicated by you are doing.
and IMPORTANT all this, taking into account the moments "this is performed every frame", "and this is performed once during input / collision / at the start"
and most likely you will be able to understand why you "move quite a bit"
correct how? to do in the trigger - it is the flag/signal/event "must be moved", and the movement should be done like any other movement, not one-time / not in one frame.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question