bird's fly around

Hi all !!

Have to be easy , but I’m learning …

I have a bird with

-Fly_long_cycle,
-Glide_circle_left and
-Glide_Flap_Glide

The animations made in another program works great inside unity
but , :sweat_smile: , only static …

How can I move the bird in the X-Y-Z Axe to look like if is flying around without press any button , just when you press the play, the bird begins to fly around … at background… according to the animations that are already made.

Thanks in advance

Give it a path, track the state, let it go.

Thanks JRavey !!

Im learning , so can you explain a little more because
it sounds like Chinese to me

Thanks

Well, there is a hard way to go about this: flocking AI (which isn’t too hairy) or just kind of winging it.

Set your birds up high in the sky, then give them a basic direction. Have them go from one way point to another, then another, and another. That’s pretty much it. You could store their path as an array of Vector3 objects if you want.

At appropriate times, have it turn, it sounds like left is the way you want it to go, so this is a NASCAR bird. When it hits the checkpoint or nears it, have it start the turn left animation for a bit until it faces the next way point and then fly towards it and do the same. Again and again. That’s pretty much it.

其实,这是一个艰难的路要走一下:植绒人工智能(这是不是太毛),还是它的翼状形式。

设置您的鸟儿在高高的天空,然后给他们一个基本方向。让他们从一个点到另一个方法,然后又和另一个。这几乎是它。你可以存储为一个Vector3对象数组的路径,如果你想要的。

在适当的时候,有它反过来,这听起来像左边是你希望它去的,所以这是一个NASCAR的鸟。当它击中的检查站或接近它,让它开始左转为位动画,直到它面临着下一个中转站,然后飞向它,这样做。一次又一次。这几乎是它。

:slight_smile:

thanks again JRavey

I will try … by the way

if the bird comes inside Unity with a full turn around animation all ready done, will be this work inside Unity? and which will be the best Script to star the animation at background when you press the play,

Best Regards

Just get it started with the Start portion of a MonoBehaviour.

:smile: :smile: :smile:

Thanks