This is a basic AI fish for an underwater environment.You can spawn how many fish you want. (Here is a bug in this version when the fishes are scared. But I fixed the problem.) There is a tank with fish whitch have a destination and every each fish from this tank has a destination/position in the tank. (You can modify value in Unity’s inspector.)
Buy on the Asset Store:
Manual:
Images:
Short video how the flock swimming:
Main features: Version 1.0
— You can change dimension of fishes with a random value in a range.
— You can change your model of fish.
— This asset has fish scare system.
— You can change interior and exterior border of destinations and positions in tank.
— You can set the number of fishes and also you can change min distance between fishes’s position in main tank.
— You can modify the time for regroup after scare.
Version 1.1(It’s finish but I will upload in max 2 days.)
— Fixed spike when fishes are scared.
— Increase performances.
— Clean Code → commented all methodes what them do.
— Solve few bugs.
(Recommandation: Use 5-20 fishes per fish flock).
!!!You will find details about How to set-up the system in documentation.!!!
The spike when the fishes are scared is because the function lookrotation send message to debug console, and we need to evitate it.
Ex:
Vector3 a = (Vector3) b - (Vector3) c;
Quatern targRot = new Quatern();
if (a != Vector3.zero)
targRot = Quatern.LookRotati(a);
transform.rotation = Quaternion.Sl…;
This asset is good for a realistic underwater environment. You can change your model, its speed animation, d
I will update this system and topic. I wait your comments (and some ideas if you want to help me to improve). Best Regards!
May 13, 2018 - Pending Review May 14, 2018 - Published
Hello DrOcto, I will come with a video with how to setup the system and how it works. Thank you for your comment! I will post also the upgrade to 1.1 version.
You need to add main tank in scene (GO TO Fish_AI->Prefab->FishTankGO(This you need to use - Add in scene).prefab), set the values(if you want like this picture or other values) and the system will spawn automatically your fishes.(You can modify amount of fish there at “Count Fish”).
You will find all of it in 1.1 version system’s documentation.
UP. This asset is live here —> Basic Fish System Pro | Behavior AI | Unity Asset Store
Version 1.1 is LIVE. The UPGRADE is free for all clients which have the asset.
You have all details about instalation and other in asset’s documentation.