Seagulls, Island demo

Hi,

I’m trying to use the seagulls from the Island demo.

but they don’t stay in group.

  • I created a new empty game object named AllSeagulls + SeagullSoundHeat.js
  • I created a new empty game object named SeagullTarget + SeagullsFlightPath.js on pos (0,10,0).
  • I added 5 SeagullPrefab on my hierachy and make them childs of my SeagullTarget.

And when I’m playing the game, everything’s fine except that my seagulls don’t stay in group like in the Island demo.

What’s wrong ?

ok maybe it’s come from the fact that I havn’t a terrain, and there is this in the code wich seems to use the terrain:

terrainData = Terrain.activeTerrain.terrainData;
	terrainSize = terrainData.size;

Should I create just a planar terrain without any Heightmap? It’s an architectural project of a restaurant in the city and I have a model max for the restaurant and another for the street. Is that a problem ?

The seagulls seems to go down to the “bottom of the world” even if I increase the low Fly height in the Seagullpath script. Is that come from the missing terrain data ?

Ok my bad, I just create a planar terrain, and now everything fine.

Now if someone wants to use the seagulls check this Topic, I’ve explain everythings :smile: