Clownfish and anemone
Explore one 22-second loop sampled from the scene in the reel. Press Play or drag the timeline.
Top view
Fish and pathTentaclesWaypoints and arrival radiiCamera
The camera is drawn closer to the scene to show where it points.
Side view
Tail thrustWater dragGlowing node
The oval approximates the fish for collisions. Each dot on a tentacle is a node in its chain.
Forces and motion over time
EffortTail beats per secondThrustDragSpeed
Effort
Tail beats/s
Thrust
Drag
Speed
Camera angle
Zoom
Glowing nodes
How the fish swims
- Steering. The fish turns toward its next waypoint. It can turn at up to 1.9 radians per second.
- Effort. Waypoints set the target effort. The fish eases off for tight turns and pushes harder when it chases food.
- Tail. The tail beats
0.70 + 1.05 × efforttimes per second. - Thrust. Each tail beat gives two pushes. The force is
2.1 × effort × (0.30 + 0.70 × sin²(phase − 0.9)). - Water drag. For forward speed
v, drag is2.2 × v² + 0.6 × v. The fish speeds up when thrust exceeds drag.
The simulation advances 60 times per second. It settles over several laps and samples the last complete lap for the reel.
How the anemone moves
- Current. The current and the fish’s wake pull each tentacle. The tips respond more strongly than the roots.
- Flexibility. Each node springs toward its resting position relative to its neighbor. The roots hold their shape more firmly than the tips.
- Contact. If a node enters the fish’s collision shape, the model nudges it halfway toward the surface on each pass.
- Length. The model restores the length of each link and caps each node’s speed at 1.1.
Glow. Contact lights up the chain. The glow spreads toward the tip at 13.0 nodes per second and fades with a time constant of 0.7 seconds.
Camera. The camera follows the fish with a delay. It swings around the center by 0.24 × horizontal offset radians and pulls back as the fish approaches.