There are two types of equilibrium: static and dynamic. Static equilibrium occurs when a body is at rest, such as a book lying on a table. Dynamic equilibrium occurs when a body is moving with a constant velocity, such as a car moving at a steady speed. Dynamic equilibrium can be translational, where the body moves with constant acceleration in the x or y direction, or rotational, where the body rotates with constant angular velocity like the Earth rotating around the Sun. For a body to be in equilibrium, the sum of all forces and sum of all torques acting on it must equal zero.