Add acceleration for gravity.