Answer the question
In order to leave comments, you need to log in
How to direct animation on the result of a condition?
Good day, friends. I have 4 areas where the animation should reach. And there are 8 sources, from which, the object needs to be moved using animation.
The problem is that, depending on the free area, the source must arrive exactly in the free area, and not in the one in which the object already exists. In the picture I tried to more clearly reflect the essence of my task.
Can you please tell me how to implement it correctly? Thanks in advance .
Answer the question
In order to leave comments, you need to log in
depending on what kind of animation you need. If the simplest suits.
then the best option would be to write a script that moves from point A to point B.
and substitute these points there.
or take a twinner thread.
the same DOTween
dotween.demigiant.com/download.php
look at the website and documentation. generally useful tool.
in fact, this is a ready-made implementation of the above principle + a bunch of bells and whistles.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question