In this paper, we present a stable and decentralized control strategy for multiagent systems (swarms) to capture a moving target in a specific formation. The coordination framework uses artificial potentials to take care of both tracking and formation tasks. First, a basic controller is designed based on a kinematic model. After that, sliding mode control technique is used to force the agents with general vehicle dynamics to obey the required motion. Finally, specific potential functions are discussed and corresponding simulation results are given.