S
S
Sergey Panov2018-06-05 16:57:39
Game development
Sergey Panov, 2018-06-05 16:57:39

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.
5b16965c4fbb6097661616.png
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

1 answer(s)
D
Denis Gaydak, 2018-06-06
@select8

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 question

Ask a Question

731 491 924 answers to any question