9. Full Example
Scene showing entities which flock while avoiding predators as well as environment. There views on "birds", "sheep" and "fish" respectively.
This sample shows a more complete scene with actual use cases. There are three kinds of entities - "birds", "sheep" and "fish" each with their predator. All the concepts from previous samples are combined here. The entities avoid collisions and flee from the predator while also flocking with their flockmates.
Birds
- Scene
- Bird System Asset
- Bird Predator System Asset

BirdSteeringAsset:
- Main Tag -
_9_BirdTagComponent - Simple Behaviors - [
WanderingJobWrapper,AlignUpJobWrapper,KeepHeightJobWrapper] - Ray Behaviors - [
AvoidGroundJobWrapper,EnvironmentAvoidanceJobWrapper] - Neighbor Behaviors - [
CohesionJobWrapper,AlignmentJobWrapper,SeparationJobWrapper,MultiHomingJobWrapper,FleeJobWrapper] - Prefab - Bird
Birds use KeepHeightJobWrapper to restrict their minimum and maximum altitude.
Simple Behaviors

Ray Behaviors

Neighbor Behaviors



BirdPredatorSteeringAsset:
- Main Tag -
_9_BirdPredatorTagComponent - Simple Behaviors - [
WanderingJobWrapper,AlignUpJobWrapper,KeepHeightJobWrapper] - Ray Behaviors - [
AvoidGroundJobWrapper,EnvironmentAvoidanceJobWrapper] - Neighbor Behaviors - [
MultiHomingJobWrapper,SeekingJobWrapper] - Prefab - BirdPredator
Simple Behaviors

Ray Behaviors

Neighbor Behaviors

Sheep
- Scene
- Sheep System Asset
- Sheep Predator System Asset

BirdSteeringAsset:
- Main Tag -
_9_SheepTagComponent - Simple Behaviors - [
WanderingJobWrapper] - Ray Behaviors - [
AvoidVerticalWallsJobWrapper] - Neighbor Behaviors - [
CohesionJobWrapper,AlignmentJobWrapper,SeparationJobWrapper,MultiHomingJobWrapper,FleeJobWrapper] - Prefab - Sheep
Simple Behaviors

Ray Behaviors

Neighbor Behaviors



SheepPredatorSteeringAsset:
- Main Tag -
_9_SheepPredatorTagComponent - Simple Behaviors - [
WanderingJobWrapper] - Ray Behaviors - [
AvoidVerticalWallsJobWrapper] - Neighbor Behaviors - [
MultiHomingJobWrapper,SeekingJobWrapper] - Prefab - SheepPredator
Simple Behaviors

Ray Behaviors

Neighbor Behaviors

Fish
- Scene
- Fish System Asset
- Fish Predator System Asset

FishSteeringAsset:
- Main Tag -
_9_FishTagComponent - Simple Behaviors - [
WanderingJobWrapper,AlignUpJobWrapper,KeepHeightJobWrapper] - Ray Behaviors - [
AvoidGroundJobWrapper,AvoidVerticalWallsJobWrapper] - Neighbor Behaviors - [
CohesionJobWrapper,AlignmentJobWrapper,SeparationJobWrapper,MultiHomingJobWrapper,FleeJobWrapper] - Prefab - Fish
Simple Behaviors

Ray Behaviors

Neighbor Behaviors



FishPredatorSteeringAsset:
- Main Tag -
_9_FishPredatorTagComponent - Simple Behaviors - [
WanderingJobWrapper,AlignUpJobWrapper,KeepHeightJobWrapper] - Ray Behaviors - [
AvoidGroundJobWrapper,AvoidVerticalWallsJobWrapper] - Neighbor Behaviors - [
MultiHomingJobWrapper,SeekingJobWrapper] - Prefab - FishPredator
Simple Behaviors

Ray Behaviors

Neighbor Behaviors
