A practical application of a wave formula, animating a Manta Ray.
To keep the body steady while animating the “wings” the formula applies amplitude depending on distance from the centre, multiplied by a cosine to give a fairly smooth transition from centre to wing tip. The formula is still fairly simple and can definatly be improved upon. The movement, though graceful is not true to life (yet).
The Coast/Swim button will freeze and start the animation less abruptly then simply turning animation on and off.