Ocean waves cause boats and ships to pitch and roll