To enlarge the applicability of digital holography, this research first employs digital holography to detect V and W displacements of a sample simultaneously. The optical setup which contains two objects is placed on the y-z plane, waves and a reference wave, and it takes two holograms before sample deformation and two more holograms after sample deformation. By using the four phase maps reconstructed from the four holograms, the V and W displacements can then be extracted. This research has completed the construction of the setup, and it was carried to examine the rigid body motion and deformation of a sample. The results agree the validity and feasibility of the set up.