Moving objects in 3D with swipes

Hey guys,

How would one move an object in the direction of your swipe in 3d Space?
I know how to do it in 2d space, by creating a 2D vector of the press and the release and substracting them, but how would one go about moving an object in 3D, in the direction of the swipe?