Gliding is a crucial phase in swimming, yet the understanding of fluid force and flow fields during gliding remains incomplete. This study analyzes gliding through Computational Fluid Dynamics simulations. Specifically, a numerical model based on the Smoothed Particle Hydrodynamics (SPH) method for flow-object interactions is established. Fluid motion is governed by continuity, Navier-Stokes, state, and displacement equations. Modified dynamic boundary particles are used to implement solid boundaries, and steady and uniform flows are generated with inflow and outflow conditions. The reliability of the SPH model is validated by replicating a documented laboratory experiment on a circular cylinder advancing steadily beneath a free surface. Reasonable agreement is observed between the numerical and experimental drag force and lift force. After the validation, the SPH model is employed to analyze the passive drag, vertical force, and pitching moment acting on a streamlined gliding 2D swimmer model as well as the surrounding velocity and vorticity fields, spanning gliding velocities from 1 m/s to 2.5 m/s, submergence depths from 0.2 m to 1 m, and attack angles from −10° to 10°. The results indicate that with the increasing gliding velocity, passive drag and pitching moment increase whereas vertical force decreases. The wake flow and free surface demonstrate signs of instability. Conversely, as the submergence depth increases, there is a decrease in passive drag and pitching moment, accompanied by an increase in vertical force. The undulation of the free surface and its interference in flow fields diminish. With the increase in the attack angle, passive drag and vertical force decrease whereas pitching moment increases, along with the alteration in wake direction and the increasing complexity of the free surface. These outcomes offer valuable insights into gliding dynamics, furnishing swimmers with a scientific basis for selecting appropriate submergence depth and attack angle.