It's not fish science - Subnautica
System
Join Date: 2013-01-29 Member: 182599Members, Super Administrators, Reinforced - Diamond
It's not fish science - Subnautica
Making creatures swim like fish is suprisingly difficult. It leads right into the territory of non-holonomic locomotion. Equations with lots of funny greek symbols. The reason behind all this is...
Comments
Subnautica renamed to Subnascar
Was just about to say that.
SPEAK ENGLISH MAN
First plot a smooth rollercoaster track through space. Slide the spine of the fish along that track as if each vertebra were a car in the rollercoaster.
That is what I did in the second screen shot. Works like charm in a sandbox but not so much in the real virtual world. Turns out that rollercoasters don't handle dynamic obstacles and currents very gracefully. They can be quite stiff about it.
The other suggestion of putting wheels on the fish and make the water like air didn't go too far either. Apparently wheels are kind of useless in air. Might need some more investigation though.
I'll probably use the spline approach to drive the fins and have underwater aerodynamics handle the rest.