3D animation: how a pistol works