UEDEV  /  3D Navigation AI  /  Underwater  ·  Updated

v3.6.0 Use case · Underwater AI

Underwater and fish AI for Unreal Engine 5

Schools that hold their depth, part round a predator and turn off the glass before they reach it; an ROV that surveys a reef; turtles that settle on the seabed. Swimming agents use the whole water column on true 3D routes — from an open reef to a 120 cm aquarium navigated at 1 cm.

Smallest voxel
0.5cm
Fish Tank demo voxels
1cm
Mass Entity agents
10,000+
New swim model
3.6
Tropical fish swim over a coral reef using volumetric navigation in Unreal Engine 5
Fish over the coral in the Coral Reef demo
01 · Volume

The whole water column

A navmesh with a depth offset is a floor plan. LCM 3D Navigation AI routes swimming agents through the full volume — over reefs, under structures and through arches — on genuine 3D paths. Fish inside a Water Volume never swim out of it, and since 3.6 water volumes and overlap-only triggers no longer read as solid to the agents' own checks, so fish find cover and turtles find the seabed.

Angelfish swimming above the reef in the Coral Reef demo
Angelfish above the reef
02 · New in 3.6

Fish that swim like fish

Fish keep their depth by pointing the nose instead of sliding up and down, swim upright, school side by side and in layers, and turn away from walls at once. The tail beats with the swimming speed (Tail Beat From Speed in the Flight Config) and a skeletal fish's swim animation plays at the same rate.

A fish slows down so its turning circle fits the way onto its target instead of circling it, and keeps its personal space even with schooling off. Its body size is measured from its meshes.

A large school of fish turning together above the reef in Unreal Engine 5
A Mass school turning together over the reef
03 · Schooling

Schooling, for one pawn or a Mass crowd

Turn on Schooling on a Mass crowd or on a pawn's Flight Movement component and it steers as a school: personal space, collision anticipation, heading matching, and turning away from rocks and glass before reaching them. A few informed fish lead the rest, a predator sets off a fountain escape that spreads through the school, and fish swim in bursts and glides. Distances are in body lengths, so it works at any scale.

The 1 cm fish tank running in real time in Unreal Engine 5, with the frame-rate counter in view
The 1 cm fish tank, captured in real time
04 · Small worlds

An aquarium at 1 cm

Voxels go down to 0.5 cm, and a World Scale profile handles centimetre-scale worlds. The Fish Tank demo navigates a 120 cm aquarium at 1 cm: 8 cm fish through a rock arch and round a predator's lair, in Behaviour Tree, StateTree and Mass editions.

Close-up of 8 cm fish in the Fish Tank small-world demo
8 cm fish at small-world scale
05 · Behaviours

Behaviours under water

The same behaviour library works for swimmers. In the Coral Reef demo an ROV surveys the reef with Scan Area, the school darts into the coral out of its sight with Flee, groupers turn to watch it with Look At, and turtles settle on the seabed with Perch.

Free demo levels

See it in the demo levels

These levels are part of the 57 free demo levels you download from inside the editor (LCM Nav3D menu › Get the Demo Levels).

Tropical fish swim over a coral reef using volumetric navigation in Unreal Engine 5

Coral Reef

An ROV surveys a reef; the school hides in the coral; turtles settle on the seabed.

  • Scan Area
  • Flee
  • BT · StateTree
A Mass Entity school of fish streams over the coral, parting round the pinnacles

Reef School

A Mass school of forty follows its lead fish round the reef on the flow field.

  • Mass
  • Schooling
A 120 cm aquarium navigated at 1 cm voxels, with small fish swimming through a rock arch

Fish Tank

A 120 cm aquarium navigated at 1 cm, round a hunting predator.

  • 1 cm voxels
  • BT · ST · Mass
FAQ

Common questions

How do I make fish AI swim in Unreal Engine 5?

Add LcmFlightMovementComponent to the fish pawn with the Fish archetype, place an LcmNavigationManagerSVO so the water volume is navigable in 3D, and drive it with the Fly To task in a Behaviour Tree or StateTree, or with a Mass trait for a school.

Does it support fish schooling?

Yes, for single pawns and for Mass Entity crowds: personal space, collision anticipation, heading matching, informed leaders, predator escape and burst-and-glide swimming, with distances in body lengths.

Can it navigate a small aquarium?

Yes. Voxels go down to 0.5 cm and a World Scale profile handles centimetre-scale worlds; the Fish Tank demo navigates a 120 cm aquarium at 1 cm.

Do fish stay inside a Water Volume?

Yes. Fish inside a Water Volume never swim out of it, and water volumes and overlap-only triggers are not treated as walls by the agents' own checks.

Read more in the free documentation:

Give your AI the whole sky.

LCM 3D Navigation AI — true 3D pathfinding and volumetric navigation for Unreal Engine 5, built and supported by a working game developer.

Get it on Fab ↗ Explore LCM 3D Navigation AI →